@wise/dynamic-flow-types 2.11.0 → 2.12.0-experimental-6654c72
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/build/index.d.ts +1 -0
- package/build/main.js +4518 -0
- package/build/main.min.js +1 -0
- package/build/main.mjs +4498 -0
- package/build/zod/json.type.d.ts +10 -0
- package/build/zod/schemas.d.ts +3652 -0
- package/build/zod/validtors.d.ts +9 -0
- package/package.json +9 -4
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0-experimental-6654c72",
|
|
4
4
|
"description": "Dynamic Flow TypeScript Types",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,24 +9,29 @@
|
|
|
9
9
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
10
10
|
},
|
|
11
11
|
"main": "./build/main.min.js",
|
|
12
|
+
"module": "./build/main.mjs",
|
|
12
13
|
"types": "./build/index.d.ts",
|
|
13
14
|
"files": [
|
|
14
15
|
"build"
|
|
15
16
|
],
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@formatjs/cli": "^6.2.
|
|
18
|
+
"@formatjs/cli": "^6.2.9",
|
|
18
19
|
"esbuild": "0.20.2",
|
|
19
20
|
"npm-run-all2": "5.0.2",
|
|
20
|
-
"ts-to-zod": "3.
|
|
21
|
+
"ts-to-zod": "3.6.1",
|
|
21
22
|
"typescript": "4.9.5"
|
|
22
23
|
},
|
|
23
24
|
"peerDependencies": {},
|
|
24
|
-
"dependencies": {
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"zod": "3.22.4"
|
|
27
|
+
},
|
|
25
28
|
"scripts": {
|
|
26
29
|
"dev": "pnpm tsc --noEmit --watch",
|
|
27
30
|
"test": "pnpm tsc --noEmit",
|
|
28
31
|
"build": "rm -rf build && npm-run-all build:*",
|
|
29
32
|
"build:types": "pnpm tsc --emitDeclarationOnly",
|
|
33
|
+
"build:js": "node ./scripts/build.mjs",
|
|
34
|
+
"zod": "./src/zod/build_zod.sh",
|
|
30
35
|
"types": "pnpm tsc --noEmit",
|
|
31
36
|
"lint": "eslint 'src/**/*.{js,ts}' --quiet"
|
|
32
37
|
}
|