@tanstack/arktype-adapter 1.121.16 → 1.121.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/dist/cjs/index.cjs +0 -13
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/index.d.cts +0 -8
- package/dist/esm/index.d.ts +0 -8
- package/dist/esm/index.js +0 -13
- package/dist/esm/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/arktype-adapter",
|
|
3
|
-
"version": "1.121.
|
|
3
|
+
"version": "1.121.17",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@testing-library/react": "^16.2.0",
|
|
55
55
|
"react": "^19.0.0",
|
|
56
56
|
"react-dom": "^19.0.0",
|
|
57
|
-
"@tanstack/react-router": "1.121.
|
|
57
|
+
"@tanstack/react-router": "1.121.17"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"arktype": ">=2.0.0-rc <3",
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const arkTypeValidator = (options) => {
|
|
4
|
-
return {
|
|
5
|
-
types: {
|
|
6
|
-
input: options.inferIn,
|
|
7
|
-
output: options.infer
|
|
8
|
-
},
|
|
9
|
-
parse: (input) => options.assert(input)
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.arkTypeValidator = arkTypeValidator;
|
|
13
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import type { ValidatorAdapter } from '@tanstack/react-router'\n\nexport interface ArkTypeLike {\n infer: any\n inferIn: any\n assert: (input: any) => any\n}\n\nexport type ArkTypeValidatorAdapter<TOptions extends ArkTypeLike> =\n ValidatorAdapter<TOptions['inferIn'], TOptions['infer']>\n\nexport const arkTypeValidator = <TOptions extends ArkTypeLike>(\n options: TOptions,\n): ArkTypeValidatorAdapter<TOptions> => {\n return {\n types: {\n input: options.inferIn,\n output: options.infer,\n },\n parse: (input) => options.assert(input),\n }\n}\n"],"names":[],"mappings":";;AAWa,MAAA,mBAAmB,CAC9B,YACsC;AAC/B,SAAA;AAAA,IACL,OAAO;AAAA,MACL,OAAO,QAAQ;AAAA,MACf,QAAQ,QAAQ;AAAA,IAClB;AAAA,IACA,OAAO,CAAC,UAAU,QAAQ,OAAO,KAAK;AAAA,EACxC;AACF;;"}
|
package/dist/cjs/index.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ValidatorAdapter } from '@tanstack/react-router';
|
|
2
|
-
export interface ArkTypeLike {
|
|
3
|
-
infer: any;
|
|
4
|
-
inferIn: any;
|
|
5
|
-
assert: (input: any) => any;
|
|
6
|
-
}
|
|
7
|
-
export type ArkTypeValidatorAdapter<TOptions extends ArkTypeLike> = ValidatorAdapter<TOptions['inferIn'], TOptions['infer']>;
|
|
8
|
-
export declare const arkTypeValidator: <TOptions extends ArkTypeLike>(options: TOptions) => ArkTypeValidatorAdapter<TOptions>;
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ValidatorAdapter } from '@tanstack/react-router';
|
|
2
|
-
export interface ArkTypeLike {
|
|
3
|
-
infer: any;
|
|
4
|
-
inferIn: any;
|
|
5
|
-
assert: (input: any) => any;
|
|
6
|
-
}
|
|
7
|
-
export type ArkTypeValidatorAdapter<TOptions extends ArkTypeLike> = ValidatorAdapter<TOptions['inferIn'], TOptions['infer']>;
|
|
8
|
-
export declare const arkTypeValidator: <TOptions extends ArkTypeLike>(options: TOptions) => ArkTypeValidatorAdapter<TOptions>;
|
package/dist/esm/index.js
DELETED
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import type { ValidatorAdapter } from '@tanstack/react-router'\n\nexport interface ArkTypeLike {\n infer: any\n inferIn: any\n assert: (input: any) => any\n}\n\nexport type ArkTypeValidatorAdapter<TOptions extends ArkTypeLike> =\n ValidatorAdapter<TOptions['inferIn'], TOptions['infer']>\n\nexport const arkTypeValidator = <TOptions extends ArkTypeLike>(\n options: TOptions,\n): ArkTypeValidatorAdapter<TOptions> => {\n return {\n types: {\n input: options.inferIn,\n output: options.infer,\n },\n parse: (input) => options.assert(input),\n }\n}\n"],"names":[],"mappings":"AAWa,MAAA,mBAAmB,CAC9B,YACsC;AAC/B,SAAA;AAAA,IACL,OAAO;AAAA,MACL,OAAO,QAAQ;AAAA,MACf,QAAQ,QAAQ;AAAA,IAClB;AAAA,IACA,OAAO,CAAC,UAAU,QAAQ,OAAO,KAAK;AAAA,EACxC;AACF;"}
|