{"name":"cheminfo-types","version":"1.16.0","description":"Types for cheminfo packages and cheminfo data schema ","main":"./index.js","types":"./cheminfoTypes.d.ts","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","scripts":{"build":"find src -name \"*.ts\" -exec grep -v import {} \\; > cheminfoTypes.d.ts","precheck-types":"npm run build","check-types":"tsc --noEmit","eslint":"eslint src --cache","eslint-fix":"npm run eslint -- --fix","prepack":"npm run build","prettier":"prettier --check src","prettier-write":"prettier --write src","test":"npm run test-only && npm run eslint && npm run check-types","pretest-only":"npm run build","test-only":"tsd","generate-json":"ts-node json/buildJSON.ts"},"repository":{"type":"git","url":"git+https://github.com/cheminfo/cheminfo-types.git"},"bugs":{"url":"https://github.com/cheminfo/cheminfo-types/issues"},"homepage":"https://github.com/cheminfo/cheminfo-types#readme","devDependencies":{"eslint":"^9.39.2","eslint-config-cheminfo-typescript":"^21.0.1","js-yaml":"^4.1.1","pino":"^10.1.0","prettier":"^3.7.4","tsd":"^0.33.0","typescript":"^5.9.3","typescript-json-schema":"^0.67.1"},"gitHead":"3fab1ce1e47b46a40a4cc2aabf8ba1d95514b01a","_id":"cheminfo-types@1.16.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-j0MiXFnLRVEZg3vUr7SXm6F3HuDNVE5arfQyDMiy1w2fAcuOs3QRgVsw7aOIACvr0aqbvn85cucwt+yOu64IiQ==","shasum":"7df45d3c83ac2e0d8092af5167e3f3f41e7c6e5d","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-1.16.0.tgz","fileCount":5,"unpackedSize":19789,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIHjffZIofGVhrf+xvzbEPNeAAjxnQ9nX6Yq0bpaFUcwIgVC7L5DZxCtYqGrEwnDkCXfFMrSm1kjLAOZ8XuIH4UMw="}],"size":6339,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-1.16.0.tgz"},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"directories":{},"maintainers":[{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cheminfo-types_1.16.0_1788943877013_0.570292074364865"},"_hasShrinkwrap":false,"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":1788943877136,"_cnpm_publish_time":1788943877136,"dist-tags":{"latest":"1.16.0"}}