包详细信息

cheminfo-types

cheminfo540.5kMIT1.8.1

Types for cheminfo packages and cheminfo data schema

自述文件

cheminfo-types

NPM version build status npm download

Types for cheminfo packages and cheminfo data schema.

Key principles:

  • One type should correspond to one React component
  • The schema should not be so complicated that it becomes unusable
  • Use @tjs-examples to give examples that will show in the JSON schema and documentation

Installation

$ npm i cheminfo-types

Usage

<summary>See example</summary> import type { MeasurementXY } from 'cheminfo-types'; const measurements: MeasurementXY[] = []; const xAxis = { label: 'time', units: 's', isDependent: false, data: [1, 2, 3], }; const yAxis = { label: 'current', units: 'mA', isDependent: true, data: [0.1, 8, 13], }; const firstMeasurement: MeasurementXY = { title: 'Current Monitoring', variables: { x: xAxis, y: yAxis }, }; measurements.push(firstMeasurement);

License

MIT

更新日志

Changelog

1.8.1 (2024-10-24)

Bug Fixes

1.8.0 (2024-08-05)

Features

  • add types for LightLogger compatible with console (#101) (fad1b27)

1.7.3 (2024-03-12)

Bug Fixes

1.7.2 (2023-06-08)

Bug Fixes

1.7.1 (2023-04-28)

Bug Fixes

  • don't use console when package is imported (a007d4b)

1.7.0 (2023-04-26)

Features

1.6.0 (2023-04-17)

Features

1.5.0 (2023-04-13)

Features

  • add nmr Data2D types (#91) (9f3adbe)
  • change isMonotone to isMonotonic (9cdd134)
  • remove description from MeasurementXY (a8f677c)

Documentation

1.4.0 (2022-07-25)

Features

  • add title in MeasurementXY (bc15cb4)

1.3.0 (2022-07-25)

Features

  • allow id in MeasurementXY (b96ac8b)

1.2.0 (2022-07-04)

Features

Bug Fixes

  • rename softwareVersion to version and downloadURL to url (16238e5)

1.1.0 (2022-02-28)

Features

1.0.0 (2022-02-25)

Features

0.11.1 (2022-02-20)

Bug Fixes

0.11.0 (2022-02-18)

Features

  • add PeakXYWidth (b617e04)
  • add prepack script to build chehminfoTypes.d.ts (40caaf4)

Bug Fixes

0.10.1 (2022-02-11)

Bug Fixes

  • remove BigInt64 array from NumberArray (f976f6a)

0.10.0 (2022-02-09)

Features

0.9.1 (2021-12-07)

Bug Fixes

0.9.0 (2021-12-07)

Features

Bug Fixes

  • add optional values in icp (6765ac2)

0.8.0 (2021-11-10)

Features

  • add Location, Instrument and Software (c5a59a6)

0.7.0 (2021-11-05)

Features

  • add FromTo, FromToXY and PointXY (31e256f)
  • add TextData interface (8dbed66)

Bug Fixes

  • revert change and correct test script name (de3c8ec)

0.6.0 (2021-10-06)

Features

  • add dataType in MeasurementXY (000105e)

Bug Fixes

0.5.0 (2021-10-01)

⚠ BREAKING CHANGES

  • rename SpectrumVariable to Measurement Variable and SpectrumVariables to MeasurementXYVariables
  • Rename Spectrum to MeasurementXY

Features

  • Rename Spectrum to MeasurementXY (8ebe783)
  • rename SpectrumVariable to Measurement Variable and SpectrumVariables to MeasurementXYVariables (4739254)

0.4.0 (2021-09-26)

Features

  • add SpectrumVariables (55f1e42)
  • rename .ts to .d.ts and expose src/index.t.ts as 'types' (52c3e13)

0.3.1 (2021-09-24)

Bug Fixes

  • fix build and move all files to 'todo' (1f9bee0)

0.3.0 (2021-09-23)

Features

  • export DataXY, DoubleArray, OneLetter and Variable (0632ef3)

Bug Fixes

0.2.0 (2021-09-17)

⚠ BREAKING CHANGES

  • replace Variable.type by Variable.isDependent

Features

  • allow range for boiling points (fc60895)
  • export Variable and OneLetter (56f128d)
  • replace Variable.type by Variable.isDependent (6f05857)
  • specify variable allowed name (5639c4b)
  • update TGA definition (cc6727f)

0.1.1 (2021-05-25)

Bug Fixes

0.1.0 (2021-05-25)

Features

Bug Fixes

Miscellaneous Chores