{"name":"cheminfo-types","version":"1.11.0","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@1.11.0","maintainers":[{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"}],"homepage":"https://github.com/cheminfo/cheminfo-types#readme","bugs":{"url":"https://github.com/cheminfo/cheminfo-types/issues"},"dist":{"shasum":"a27d3f0ce1d96da64eb2c0240dbaed3ff2928048","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-1.11.0.tgz","fileCount":5,"integrity":"sha512-IPdkiGf101Bb2d2VaMdV1VS8HzG2ouCKqXeFe8y1A9BekyE3Zv/7K7IY1rqqRicPjYtU7c9dHh2oaUNEYigOIQ==","signatures":[{"sig":"MEYCIQCz+PJ5wjwCUtw8HqHW6gDxuzkhiZs3RjOg91+UFbFt/AIhALLnBbivG2iO5iRCfIk7CpqEpM8LvJ4FOnLTD7TGeh66","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15910,"size":5289,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-1.11.0.tgz"},"main":"./index.js","types":"./cheminfoTypes.d.ts","gitHead":"d9857c0eb34b8f9bc9cd43c3805e9d2d14ba3315","scripts":{"test":"npm run test-only && npm run eslint && npm run check-types","build":"find src -name \"*.ts\" -exec grep -v import {} \\; > cheminfoTypes.d.ts","eslint":"eslint src --cache","prepack":"npm run build","prettier":"prettier --check src","test-only":"tsd","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","pretest-only":"npm run build","generate-json":"ts-node json/buildJSON.ts","precheck-types":"npm run build","prettier-write":"prettier --write src"},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"repository":{"url":"git+https://github.com/cheminfo/cheminfo-types.git","type":"git"},"_npmVersion":"11.11.0","description":"Types for cheminfo packages and cheminfo data schema ","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","pino":"^10.1.0","eslint":"^9.39.2","js-yaml":"^4.1.1","prettier":"^3.7.4","typescript":"^5.9.3","typescript-json-schema":"^0.67.1","eslint-config-cheminfo-typescript":"^21.0.1"},"_npmOperationalInternal":{"tmp":"tmp/cheminfo-types_1.11.0_1774535702979_0.2151828176881334","host":"s3://npm-registry-packages-npm-production"},"readme":"# cheminfo-types\n\n[![NPM version][npm-image]][npm-url]\n[![build status][ci-image]][ci-url]\n[![npm download][download-image]][download-url]\n\nTypes for cheminfo packages and cheminfo data schema.\n\n__Key principles:__ \n- One type should correspond to one React component \n- The schema should not be so complicated that it becomes unusable \n- Use `@tjs-examples` to give examples that will show in the JSON schema and documentation\n\n## Installation\n\n`$ npm i cheminfo-types`\n\n## Usage\n\n<details>\n\n<summary>See example</summary>\n\n```\nimport type { MeasurementXY } from 'cheminfo-types';\n\nconst measurements: MeasurementXY[] = [];\nconst xAxis = {\n  label: 'time',\n  units: 's',\n  isDependent: false,\n  data: [1, 2, 3],\n};\nconst yAxis = {\n  label: 'current',\n  units: 'mA',\n  isDependent: true,\n  data: [0.1, 8, 13],\n};\nconst firstMeasurement: MeasurementXY = {\n  title: 'Current Monitoring',\n  variables: { x: xAxis, y: yAxis },\n};\nmeasurements.push(firstMeasurement);\n```\n\n</details>\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/cheminfo-types.svg\n[npm-url]: https://www.npmjs.com/package/cheminfo-types\n[ci-image]: https://github.com/cheminfo/cheminfo-types/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/cheminfo/cheminfo-types/actions?query=workflow%3A%22Node.js+CI%22\n[download-image]: https://img.shields.io/npm/dm/cheminfo-types.svg\n[download-url]: https://www.npmjs.com/package/cheminfo-types\n","publish_time":1774535703144,"_cnpm_publish_time":1774535703144,"dist-tags":{"latest":"1.16.0"}}