{"_id":"@typeschema/ow","_rev":"4-7647e925e5ca03a5a5428d15b1011e26","name":"@typeschema/ow","dist-tags":{"latest":"0.14.0"},"versions":{"0.13.0":{"name":"@typeschema/ow","version":"0.13.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/ow@0.13.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":"b5af47b06905fd412ceeb83b6b99974204db4f27","tarball":"https://registry.npmjs.org/@typeschema/ow/-/ow-0.13.0.tgz","fileCount":7,"integrity":"sha512-k8N6POZSGPy5+DVAxCWyub5WBNcjwNaKst1bQ8NB8Fs44OnO5F+pvEUTyWKih6VOK5SjKyJ699NT9XpTdhA8RA==","signatures":[{"sig":"MEQCIElT4b9N1XDWEnjZ7HJXzApibwSiA5kNyo+SFrNMX+4+AiAJkCP9Foce23/1IQWjlc4r8Dzz1VTqCOLytB/6x1foSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10355},"main":"dist/index.js","_from":"file:typeschema-ow-0.13.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"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/private/var/folders/dq/77g3z6095pj93wyfv7wj52rm0000gn/T/4865160e0c174c3f878d06d660bdc944/typeschema-ow-0.13.0.tgz","_integrity":"sha512-k8N6POZSGPy5+DVAxCWyub5WBNcjwNaKst1bQ8NB8Fs44OnO5F+pvEUTyWKih6VOK5SjKyJ699NT9XpTdhA8RA==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Ow schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.0"},"//description":"This field is manually maintained.","_hasShrinkwrap":false,"devDependencies":{"ow":"^0.28.2"},"peerDependencies":{"ow":"^0.28.2"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"ow":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/ow_0.13.0_1708584812898_0.5213149690788084","host":"s3://npm-registry-packages"}},"0.13.1":{"name":"@typeschema/ow","version":"0.13.1","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/ow@0.13.1","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":"cd7638c58b130b31ec670541e9c758cb5756ec74","tarball":"https://registry.npmjs.org/@typeschema/ow/-/ow-0.13.1.tgz","fileCount":7,"integrity":"sha512-rWRABxdYUh7vysg5YXVT+jjxp9RibxOIMcB9dGQZ+j0QfdNtM98RW/J0FQwmYAt3Y8imRPZP6YoQzHHU1R8/cw==","signatures":[{"sig":"MEUCIHA+vZHPhuombO7NmYi+z7FmkelACLG92xa0NDgy+RNoAiEAls8Rlln0B7hvhnYuoAhrZ1OijdPexxaVbDXjMEFQHto=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10535},"main":"dist/index.js","_from":"file:typeschema-ow-0.13.1.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"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/private/var/folders/dq/77g3z6095pj93wyfv7wj52rm0000gn/T/b97fe43f846aa98eca969cdc7175790f/typeschema-ow-0.13.1.tgz","_integrity":"sha512-rWRABxdYUh7vysg5YXVT+jjxp9RibxOIMcB9dGQZ+j0QfdNtM98RW/J0FQwmYAt3Y8imRPZP6YoQzHHU1R8/cw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Ow schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.1"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"ow":"^0.28.2"},"peerDependencies":{"ow":"^0.28.2"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"ow":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/ow_0.13.1_1708712692489_0.3403507154129892","host":"s3://npm-registry-packages"}},"0.13.2":{"name":"@typeschema/ow","version":"0.13.2","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/ow@0.13.2","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":"5954324031e2335de60f32e1c45245ed80e4779d","tarball":"https://registry.npmjs.org/@typeschema/ow/-/ow-0.13.2.tgz","fileCount":7,"integrity":"sha512-cK2rtoFif2WofrY1kdy+Pr7fOeYSfSQJEsLXbj50wClb6kRBuHWTWIDgAGJpc3ED6TYFt+yCUKToWHv48Okmgg==","signatures":[{"sig":"MEUCIQDf5iTJtBosWNM1sveUKZolxLi/+WXboMoLS0tz3wYTnQIgFVihx9hOGFFvp4JjLLyPH4GLmYs+cDgIyZIAZ0AoAUE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10591},"main":"dist/index.js","_from":"file:typeschema-ow-0.13.2.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"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/afd82685b42b7104db8be9e8edd78098/typeschema-ow-0.13.2.tgz","_integrity":"sha512-cK2rtoFif2WofrY1kdy+Pr7fOeYSfSQJEsLXbj50wClb6kRBuHWTWIDgAGJpc3ED6TYFt+yCUKToWHv48Okmgg==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Ow schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"ow":"^0.28.2"},"peerDependencies":{"ow":"^0.28.2"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"ow":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/ow_0.13.2_1709024744775_0.7018254130047736","host":"s3://npm-registry-packages"}},"0.13.3":{"name":"@typeschema/ow","version":"0.13.3","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/ow@0.13.3","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":"ec3064bc7abf1625f8ff0fb222723323ecfa2eda","tarball":"https://registry.npmjs.org/@typeschema/ow/-/ow-0.13.3.tgz","fileCount":7,"integrity":"sha512-WvURpsia5uDXfL6Np/rebCxTCeWaLwDDUaJkwZPdTnGbMNBxgej04pDsEVvMTExdpiXTRSYSHokBdGVVV3/8oA==","signatures":[{"sig":"MEQCIGWjMv8cT6UgvFl0IpOxwuPVeg/LmjAciosTxjjL3SCxAiBk5HcJT8cpGffzd3K7GyZhocg6yBpfdWKD14ttQn4WYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11296},"main":"dist/index.js","_from":"file:typeschema-ow-0.13.3.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"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/18b1b290863a775eafa484e7729a20f7/typeschema-ow-0.13.3.tgz","_integrity":"sha512-WvURpsia5uDXfL6Np/rebCxTCeWaLwDDUaJkwZPdTnGbMNBxgej04pDsEVvMTExdpiXTRSYSHokBdGVVV3/8oA==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Ow schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"ow":"^0.28.2"},"peerDependencies":{"ow":"^0.28.2"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","ow":"Required for inference and validation"},"peerDependenciesMeta":{"ow":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/ow_0.13.3_1709278972499_0.9130708007766188","host":"s3://npm-registry-packages"}},"0.14.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/ow","//version":"This field is manually maintained.","version":"0.14.0","//description":"This field is manually maintained.","description":"Reusable adapter for Ow 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":{"ow":"^0.28.2"},"//peerDependencies":{"//":"This field is manually maintained.","ow":"Required for inference and validation"},"peerDependencies":{"ow":"^0.28.2"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"ow":{"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/ow@0.14.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-6U5NpXyrkNN8ckTPTjSc7NVTD87vXCiOBD/ZlZWa0+BQnYLMjEFTeLgG4RSyMuBcjQT0N3aTyVmBQhxqzuib0Q==","_resolved":"/tmp/5c3836171ba652b519b4763e92974c9b/typeschema-ow-0.14.0.tgz","_from":"file:typeschema-ow-0.14.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-6U5NpXyrkNN8ckTPTjSc7NVTD87vXCiOBD/ZlZWa0+BQnYLMjEFTeLgG4RSyMuBcjQT0N3aTyVmBQhxqzuib0Q==","shasum":"d94eed3fb6d5ef66adc7bc4576373be3ab5565ed","tarball":"https://registry.npmjs.org/@typeschema/ow/-/ow-0.14.0.tgz","fileCount":7,"unpackedSize":11514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRF/e9KwL2Dgf+FoVcBy4jXs+TNhFeU/yhuVKMS4fcuAiAj5U52wPWb/YfoNoB1h9tY3Kd/QDctDW2/lWwzD9X/Kw=="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ow_0.14.0_1724625240489_0.3137441483570327"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-22T06:53:32.817Z","modified":"2024-08-25T22:34:00.824Z","0.13.0":"2024-02-22T06:53:33.057Z","0.13.1":"2024-02-23T18:24:52.664Z","0.13.2":"2024-02-27T09:05:44.921Z","0.13.3":"2024-03-01T07:42:52.702Z","0.14.0":"2024-08-25T22:34:00.618Z"},"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 Ow 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/ow</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/ow\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Fow\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/ow\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/ow.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 Ow schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport {initTRPC} from '@trpc/server';\nimport ow from 'ow';\n\nimport {wrap} from '@typeschema/ow';\n\nconst schema = ow.object.exactShape({name: ow.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- [`ow`](https://www.npmjs.com/package/ow): Required for inference and validation (`^0.28.2`)\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"}