{"name":"@putout/types","version":"1.2.0","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.2.0","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":"cd145f400d07578a9a4a7fa9fa1ef4f98c235f80","tarball":"http://registry-npm.ywwl.com/@putout/types/download/@putout/types-1.2.0.tgz","fileCount":4,"integrity":"sha512-6fgfmmHiLHcDb+nH6ImJB4z825KckGLeGd3i5yHn3ENkcXujuCyGq7N2zlmiS/cT6byXfVt6uVAWhThZO6PmIw==","signatures":[{"sig":"MEUCIFNgqHvrSCXJJKl6HRNEeyLIySryX9sMRmB4tj7M+6EkAiEAnrKWMT68gYxcVgJ7nuMrzonqnHbh2Dy7yZnHN7ugb2Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5483,"size":2432,"noattachment":false,"key":"/@putout/types/-/@putout/types-1.2.0.tgz"},"main":"lib/types.ts","type":"module","engines":{"node":">=22"},"exports":{"./plugin":"./lib/plugin.d.ts"},"gitHead":"1a66c46095926ece8ae008b564fb8462e5b409fa","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"},"_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.4.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":{"tmp":"tmp/types_1.2.0_1782648806202_0.7588785934464564","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":1782648806362,"_cnpm_publish_time":1782648806362,"dist-tags":{"latest":"1.3.0"}}