@arisutalk/character-spec 0.0.8 → 0.0.9
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/dist/index.d.ts.map +1 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,SAAS,IAAI,WAAW,EAEhC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB,GAAG,EAAE,WAAW,CAAC;CACpB,CAAC;AACF;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAAiC"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Applies the given Zod schema to the provided data and returns the parsed output.
|
|
4
|
+
* @param schema The Zod schema to apply.
|
|
5
|
+
* @param data The data to be validated and parsed. Don't need to pass optional fields.
|
|
6
|
+
* @returns The parsed output of the schema.
|
|
7
|
+
*/
|
|
8
|
+
export declare function apply<T extends z.ZodType>(schema: T, data: z.input<T>): z.output<T>;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAE9B;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EACrC,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GACjB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAEb"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arisutalk/character-spec",
|
|
3
3
|
"description": "Character specification, schema & migration for ArisuTalk",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "concertypin",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"tsx": "^4.19.2",
|
|
43
43
|
"typescript": "~5.9.3",
|
|
44
44
|
"vite": "^6.4.1",
|
|
45
|
+
"vite-plugin-dts": "^4.5.4",
|
|
45
46
|
"vite-tsconfig-paths": "^5.1.4",
|
|
46
47
|
"vitest": "^4.0.16",
|
|
47
48
|
"zod": "^4.1.13",
|
|
@@ -58,4 +59,4 @@
|
|
|
58
59
|
}
|
|
59
60
|
},
|
|
60
61
|
"packageManager": "pnpm@10.16.1+sha512.0e155aa2629db8672b49e8475da6226aa4bdea85fdcdfdc15350874946d4f3c91faaf64cbdc4a5d1ab8002f473d5c3fcedcd197989cf0390f9badd3c04678706"
|
|
61
|
-
}
|
|
62
|
+
}
|