{"_id":"@typeschema/arktype","_rev":"3-440c947f114d4d5612972954d6d501c7","name":"@typeschema/arktype","dist-tags":{"latest":"0.14.0"},"versions":{"0.13.0":{"name":"@typeschema/arktype","version":"0.13.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/arktype@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":"f165d0c9db5922d7777fecc0992032a32cdbc3be","tarball":"https://registry.npmjs.org/@typeschema/arktype/-/arktype-0.13.0.tgz","fileCount":7,"integrity":"sha512-d9J36d65Sqwal3gt/2gAlxBnN4ehwLBLg+stFIDuONl0YH1KkwCOAtJzlHO1KUfMgtDyvBmatUynJ7jn8PziPg==","signatures":[{"sig":"MEUCIDjB7iumkUUa4o1mUdxemNqg0clmnoEXvlVBBSE4aMAmAiEAh8vMYmi1iKjmQP7bOHLrwbdLPxiXL+p0VO3SDnhgll8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9257},"main":"dist/index.js","_from":"file:typeschema-arktype-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/aa6f2a2d00c22ff4361bf24dbf2885a1/typeschema-arktype-0.13.0.tgz","_integrity":"sha512-d9J36d65Sqwal3gt/2gAlxBnN4ehwLBLg+stFIDuONl0YH1KkwCOAtJzlHO1KUfMgtDyvBmatUynJ7jn8PziPg==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for ArkType schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.0"},"//description":"This field is manually maintained.","_hasShrinkwrap":false,"devDependencies":{"arktype":"^1.0.29-alpha"},"peerDependencies":{"arktype":"^1.0.29-alpha"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"arktype":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/arktype_0.13.0_1708584789248_0.9718261196737448","host":"s3://npm-registry-packages"}},"0.13.1":{"name":"@typeschema/arktype","version":"0.13.1","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/arktype@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":"f390041b565f8660acbf929782f729bd1bc80d11","tarball":"https://registry.npmjs.org/@typeschema/arktype/-/arktype-0.13.1.tgz","fileCount":7,"integrity":"sha512-GDuTljA5PJgEPYsJlDKGASIDgoK7M79jlN13Kl3GSRaQn1op9G/zzDdaDh0DsGzjqtExSn4s97IG0f1IBQi9rw==","signatures":[{"sig":"MEUCIQD+y76fjJWnKwIKR0epztRQZGPWS9XCN/R3fSmYU5r1tAIgXNKjuvrQ0d2eSsWUrF0RONCU0pKxbO9/Ustl1dVdmbA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9437},"main":"dist/index.js","_from":"file:typeschema-arktype-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/ef59e96bb84ca1315176a90333e1eaa4/typeschema-arktype-0.13.1.tgz","_integrity":"sha512-GDuTljA5PJgEPYsJlDKGASIDgoK7M79jlN13Kl3GSRaQn1op9G/zzDdaDh0DsGzjqtExSn4s97IG0f1IBQi9rw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for ArkType 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":{"arktype":"^1.0.29-alpha"},"peerDependencies":{"arktype":"^1.0.29-alpha"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"arktype":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/arktype_0.13.1_1708712690949_0.003304043712870852","host":"s3://npm-registry-packages"}},"0.13.2":{"name":"@typeschema/arktype","version":"0.13.2","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/arktype@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":"c53c199ccc4d317579b57d3a75041768a5214441","tarball":"https://registry.npmjs.org/@typeschema/arktype/-/arktype-0.13.2.tgz","fileCount":7,"integrity":"sha512-B+qAQ09HMPe7fOaEkodEX/eccDpoBHCw37gNhhpR1jhdXGVtKerXoMsmEzzYst5fe6Rbp5kNa7/nacuFXAYfAA==","signatures":[{"sig":"MEUCIQCyzbjdFoKuFjONWuLKHKqxhPRzUTSXrBJvkfTkPDyiEAIgAtyAKKmvt4l/MMkQNBB/RxmghANhq46bJj9YMUa/LR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9513},"main":"dist/index.js","_from":"file:typeschema-arktype-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/dd91a0b0eae0dc023e5bec9f134c6633/typeschema-arktype-0.13.2.tgz","_integrity":"sha512-B+qAQ09HMPe7fOaEkodEX/eccDpoBHCw37gNhhpR1jhdXGVtKerXoMsmEzzYst5fe6Rbp5kNa7/nacuFXAYfAA==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for ArkType 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":{"arktype":"^1.0.29-alpha"},"peerDependencies":{"arktype":"^1.0.29-alpha"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"arktype":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/arktype_0.13.2_1709024739223_0.8659388388194778","host":"s3://npm-registry-packages"}},"0.14.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/arktype","//version":"This field is manually maintained.","version":"0.14.0","//description":"This field is manually maintained.","description":"Reusable adapter for ArkType 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":{"arktype":"^2.0.0-rc.0"},"//peerDependencies":{"//":"This field is manually maintained.","arktype":"Required for inference and validation"},"peerDependencies":{"arktype":"^2.0.0-rc.0"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"arktype":{"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/arktype@0.14.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-3/b0k8RMHO//uJh/NhrgzBsykVo7KUl1+p86N+/9r8Lducbuigu9sOEh/PVVivj5XnrZZPAFQV9QbeUWhClo8Q==","_resolved":"/tmp/be28e6e43001df2d48a94f143d89a80d/typeschema-arktype-0.14.0.tgz","_from":"file:typeschema-arktype-0.14.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-3/b0k8RMHO//uJh/NhrgzBsykVo7KUl1+p86N+/9r8Lducbuigu9sOEh/PVVivj5XnrZZPAFQV9QbeUWhClo8Q==","shasum":"d15921adf379adf4a56f6f7b6112d9bd55877470","tarball":"https://registry.npmjs.org/@typeschema/arktype/-/arktype-0.14.0.tgz","fileCount":7,"unpackedSize":11117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkWvitYZCdLK1gfwfI4iPw5svJy9d3eG16BknhfTy8hQIgNYH0ircFgtsYxf1qNeBP1vJpsSIdPdzIs3iJoIaqD0I="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arktype_0.14.0_1724625235369_0.8248574357243581"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-22T06:53:09.130Z","modified":"2024-08-25T22:33:55.752Z","0.13.0":"2024-02-22T06:53:09.454Z","0.13.1":"2024-02-23T18:24:51.108Z","0.13.2":"2024-02-27T09:05:39.398Z","0.14.0":"2024-08-25T22:33:55.512Z"},"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 ArkType 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/arktype</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/arktype\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Farktype\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/arktype\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/arktype.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 ArkType schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport {initTRPC} from '@trpc/server';\nimport {type} from 'arktype';\n\nimport {wrap} from '@typeschema/arktype';\n\nconst schema = type({name: '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- [`arktype`](https://www.npmjs.com/package/arktype): Required for inference and validation (`^2.0.0-rc.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"}