TypeScript type definitions and data schemas for cheminfo packages and related chemistry data. Current stable version: 1.15.0, released periodically. This package provides a unified type system shared across the cheminfo ecosystem, covering spectra, measurements, molecules, and other chemical data structures. It is dependency-free and ships exclusively TypeScript types. Unlike ad-hoc type definitions, cheminfo-types enforces a consistent schema with JSON schema integration and `@tjs-examples` for documentation generation. It is designed primarily for internal use within cheminfo projects but is open to external contributions.
npm install cheminfo-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using the MeasurementXY type to create a measurement object with x and y variables.
Replace `Spectrum1D` with `MeasurementXY` and adjust property names accordingly.
Replace `Measurement2D` with `MeasurementXY` and adjust property names accordingly.
Use `import type { ... } from 'cheminfo-types'`.Use ES module `import type` syntax, not CommonJS require.
Change `import { MeasurementXY } from 'cheminfo-types'` to `import type { MeasurementXY } from 'cheminfo-types'`.Run `npm install cheminfo-types` and ensure the file has at least one top-level `import` or `export` statement.
No dependency data recorded yet.