{"name":"@putout/types","version":"1.0.1","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/types@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/types#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"bcacc0a0e93f28ca6f8bb2d910da51a9132daf42","tarball":"http://registry-npm.ywwl.com/@putout/types/download/@putout/types-1.0.1.tgz","fileCount":4,"integrity":"sha512-vWqwXCwe8JeYPdANLCpBEpSiRARibq7HBC8Mj1nx0eCFfffU/APgs0/maZyotb1o3WB5ysUH3oNm4NXIcAeP9Q==","signatures":[{"sig":"MEYCIQDqTBuxljBY89xe93IbcMfl2uAb7BsNbZkuQcn1uv2A6QIhAN849yNDvDXzUeVtZnwNzWgKTAsUYTxQApNqXRbE/tbl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4876,"size":2290,"noattachment":false,"key":"/@putout/types/-/@putout/types-1.0.1.tgz"},"main":"lib/types.ts","type":"module","engines":{"node":">=22"},"exports":{"./plugin":"./lib/plugin.d.ts"},"gitHead":"584178cbaf67f1b8bda152f59f4530a3fab03898","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","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"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout TS Types","directories":{},"_nodeVersion":"26.3.1","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":{"tmp":"tmp/types_1.0.1_1782225343444_0.18890965910705848","host":"s3://npm-registry-packages-npm-production"},"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":1782225343578,"_cnpm_publish_time":1782225343578,"dist-tags":{"latest":"1.3.0"}}