{"_id":"@typeschema/vine","_rev":"1-b8227de348abdd2de19b453e80c34adf","name":"@typeschema/vine","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@typeschema/vine","version":"0.1.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/vine@0.1.0","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"2b335186d5515501ff9ec80f033f544302a70c20","tarball":"https://registry.npmjs.org/@typeschema/vine/-/vine-0.1.0.tgz","fileCount":7,"integrity":"sha512-4+9v6JBCboMXnbtZS0HEuDhI+GN27SW/liGsqF5SWO0E9roaUyHCmrkcqZwsF7l+/+ZP8jxmt+qUAMm0QRkfiQ==","signatures":[{"sig":"MEUCIQCASTNQW2XpyCefECou3LAX+znhC+hdZY9keO9l8U1czwIgKG5CIfcNlfWvhmGqDzV97JgDvLQYH4wtp8HV/Nygo/o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11633},"main":"dist/index.js","_from":"file:typeschema-vine-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/5fd40ce242dafbd28ee64f37a132c5c5/typeschema-vine-0.1.0.tgz","_integrity":"sha512-4+9v6JBCboMXnbtZS0HEuDhI+GN27SW/liGsqF5SWO0E9roaUyHCmrkcqZwsF7l+/+ZP8jxmt+qUAMm0QRkfiQ==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.5.0","description":"Reusable adapter for VineJS schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.12.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"@vinejs/vine":"^2.0.0"},"peerDependencies":{"@vinejs/vine":"^2.0.0"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","@vinejs/vine":"Required for inference and validation"},"peerDependenciesMeta":{"@vinejs/vine":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/vine_0.1.0_1712897770648_0.26326060704936616","host":"s3://npm-registry-packages"}},"0.2.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/vine","//version":"This field is manually maintained.","version":"0.2.0","//description":"This field is manually maintained.","description":"Reusable adapter for VineJS schemas","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"homepage":"https://typeschema.com","license":"MIT","author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"dependencies":{"@typeschema/core":"0.14.0"},"//devDependencies":"This field is manually maintained.","devDependencies":{"@vinejs/vine":"^2.1.0"},"//peerDependencies":{"//":"This field is manually maintained.","@vinejs/vine":"Required for inference and validation"},"peerDependencies":{"@vinejs/vine":"^2.1.0"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"@vinejs/vine":{"optional":true}},"scripts":{"build":"tsup --config ../../tsup.config.ts","lint":"eslint src --fix","lint:package":"publint && attw --pack","test":"vitest --config ../../vitest.config.ts","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_id":"@typeschema/vine@0.2.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-UN82ifr8f3qdqKY4chanidioxx53ugOBG+H9jiyUb9iyFLtMIBxEefHeTSs7Vm6Z/DyaZITtas+TqIBem2k4Uw==","_resolved":"/tmp/25b47b847475bb9761e41c8b9ffac34c/typeschema-vine-0.2.0.tgz","_from":"file:typeschema-vine-0.2.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-UN82ifr8f3qdqKY4chanidioxx53ugOBG+H9jiyUb9iyFLtMIBxEefHeTSs7Vm6Z/DyaZITtas+TqIBem2k4Uw==","shasum":"67d189e7228be2968d3ac4cf3e0a851343ead1c3","tarball":"https://registry.npmjs.org/@typeschema/vine/-/vine-0.2.0.tgz","fileCount":7,"unpackedSize":11627,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQcGZecoYmLBrV4Xpn3ynjpHu3QIN2uGBZVnVU2GRjbAiEAnraNyqlvzfLSzXiRXZ6SxGFDr7TmDs54rYPQOOmgyYc="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vine_0.2.0_1724625241056_0.7887800607840154"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-12T04:56:10.546Z","modified":"2024-08-25T22:34:01.677Z","0.1.0":"2024-04-12T04:56:10.774Z","0.2.0":"2024-08-25T22:34:01.267Z"},"bugs":{"url":"https://github.com/decs/typeschema/issues"},"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","homepage":"https://typeschema.com","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"description":"Reusable adapter for VineJS schemas","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"readme":"<!-- This file is generated. Do not modify it manually! -->\n\n<img src=\"https://typeschema.com/assets/logo.png\" width=\"64px\" alt=\"TypeSchema\" />\n<h1>@typeschema/vine</h1>\n<p>\n  <a href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/license/decs/typeschema\" alt=\"License\"></a>\n  <a href=\"https://bundlephobia.com/package/@typeschema/vine\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Fvine\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/vine\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/vine.svg\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/decs/typeschema/stargazers\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/stars/decs/typeschema\" alt=\"GitHub stars\"></a>\n</p>\n<p>\n  Reusable adapter for VineJS schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport {initTRPC} from '@trpc/server';\nimport vine from '@vinejs/vine';\n\nimport {wrap} from '@typeschema/vine';\n\nconst schema = vine.object({name: vine.string()});\n\nconst t = initTRPC.create();\nconst appRouter = t.router({\n  hello: t.procedure\n    .input(wrap(schema))\n    .query(({input}) => `Hello, ${input.name}!`),\n  //         ^? {name: string}\n});\n\n```\n\nUse it directly or through [`@typeschema/main`](https://github.com/decs/typeschema/tree/main/packages/main)\n\n## Dependencies\n- [`@vinejs/vine`](https://www.npmjs.com/package/@vinejs/vine): Required for inference and validation (`^2.1.0`)\n\n## API\n\n### Inference\n- `Infer<TSchema>`: Extracts the output type of a schema\n- `InferIn<TSchema>`: Extracts the input type of a schema\n\n### Validation\n- `wrap(schema)`: Returns the wrapped schema with access to its operations\n- `validate(schema, data)`: Returns the validated data or a list of validation issues\n- `assert(schema, data)`: Returns the validated data or throws an `AggregateError`\n","readmeFilename":"README.md"}