@wise/dynamic-flow-types 2.12.0-experimental-6654c72 → 2.12.0-experimental-63c768d
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/README.md +6 -0
- package/build/index.d.ts +1 -1
- package/build/main.js +17 -25
- package/build/main.min.js +1 -1
- package/build/main.mjs +17 -25
- package/build/zod/schemas.ts +914 -0
- package/build/zod/validators.d.ts +9 -0
- package/package.json +3 -2
- package/build/zod/validtors.d.ts +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ValidationResult = {
|
|
2
|
+
valid: true;
|
|
3
|
+
} | {
|
|
4
|
+
valid: false;
|
|
5
|
+
errors: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const validateStep: (step: unknown) => ValidationResult;
|
|
8
|
+
export declare const validateActionResponse: (response: unknown) => ValidationResult;
|
|
9
|
+
export declare const validateErrorResponse: (response: unknown) => ValidationResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-types",
|
|
3
|
-
"version": "2.12.0-experimental-
|
|
3
|
+
"version": "2.12.0-experimental-63c768d",
|
|
4
4
|
"description": "Dynamic Flow TypeScript Types",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"build": "rm -rf build && npm-run-all build:*",
|
|
32
32
|
"build:types": "pnpm tsc --emitDeclarationOnly",
|
|
33
33
|
"build:js": "node ./scripts/build.mjs",
|
|
34
|
-
"zod": "./src/zod/build_zod.sh",
|
|
34
|
+
"build:zod": "./src/zod/build_zod.sh",
|
|
35
35
|
"types": "pnpm tsc --noEmit",
|
|
36
|
+
"types:watch": "pnpm tsc --noEmit --watch",
|
|
36
37
|
"lint": "eslint 'src/**/*.{js,ts}' --quiet"
|
|
37
38
|
}
|
|
38
39
|
}
|
package/build/zod/validtors.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ValidationResult = {
|
|
2
|
-
valid: true;
|
|
3
|
-
} | {
|
|
4
|
-
valid: false;
|
|
5
|
-
errors: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function validateStep(step: unknown): ValidationResult;
|
|
8
|
-
export declare function validateActionResponse(response: unknown): ValidationResult;
|
|
9
|
-
export declare function validateErrorResponse(response: unknown): ValidationResult;
|