{"_id":"@putout/types@1.2.2","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"0e3189b0a2a123d8e14617063c9aad2d01b40586","tarball":"http://registry-npm.ywwl.com/@putout/types/download/@putout/types-1.2.2.tgz","fileCount":4,"integrity":"sha512-Dl1l81Ih7ocKroOQA8H1UE0AyfGC2rNCEXH1EKfi3yqf7KYD8mlpV+3+pOtaunngDqu7ja9VxV2NgFYOtG8EGA==","signatures":[{"sig":"MEUCIQCS6lZFJEuoPojKCA6+FI2qQFJbWiNMbqQG2KT2GwemAQIgMoAuojxTzkpHmmu2i2z9h10RJfuiBCV7kA/xR0lToP4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDNwPtiQYoCmWuf9gzcKObGS6Prn0OskRRQPRDCH+S06wIhAM0m1blNVoT2sWc9c9CSNEDPMb/Sc/jTdKNLYM7ETuXo"}],"unpackedSize":5517,"size":2439,"noattachment":false,"key":"/@putout/types/-/@putout/types-1.2.2.tgz"},"main":"lib/types.ts","name":"@putout/types","type":"module","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"engines":{"node":">=22"},"exports":{"./plugin":"./lib/plugin.d.ts"},"gitHead":"5eb2d26301a88baf55d080d1db176ecac230aff8","license":"MIT","release":false,"scripts":{"lint":"madrun lint","report":"madrun report","wisdom":"madrun wisdom","coverage":"madrun coverage","fix:lint":"madrun fix:lint","test:dts":"madrun test:dts","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"version":"1.2.2","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/types#readme","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout TS Types","directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_nodeVersion":"26.10.0","dependencies":{"@putout/babel":"^5.9.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","redlint":"^6.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_1.2.2_1790369388755_0.3006009524413735"},"readme":"# @putout/types [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/types.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/types \"npm\"\n\n## Install\n\n```\nnpm i @putout/types\n```\n\n## TypeScript Support\n\nEvery 🐊**Putout** operator ships TypeScript types written by TDD for types. Write a `.d.ts` and a `test/errors.ts`, validate with `check-dts`.\n\n### Quick start\n\nAdd `test:dts` script to `.madrun.js` then to update `package.json` run:\n\n```sh\nmadrun --init\n```\n\nAdd `check-dts` to devDependencies with `nupdate check-dts -aD`. Then you need:\n\n- `lib/<name>.d.ts` — export function signatures with types\n- `test/errors.ts` — call each export with invalid args, mark with `// THROWS`\n\n```sh\nredrun test:dts\n```\n\n### Example\n\n```ts\n// test/errors.ts\nimport {addArgs} from '../lib/add-args.js';\n\n// THROWS Argument of type 'number' is not assignable to parameter of type 'AddArgsOptions'\naddArgs(5);\n```\n\nEvery `// THROWS` is a test. `check-dts` compiles the file and checks the error matches.\n\n## License\n\nMIT\n","publish_time":1790369389033,"_cnpm_publish_time":1790369389033,"dist-tags":{"latest":"1.3.0"}}