zod-form-data
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,15 +14,3 @@ import { z, ZodArray, ZodEffects, ZodNumber, ZodString, ZodTypeAny } from "zod"; | ||
export declare const repeatableOfType: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], T["_input"][]>; | ||
export declare const formData: (shape: z.ZodRawShape) => z.ZodEffects<z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}>, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}>; | ||
export declare const formData: <T extends z.ZodRawShape>(shape: T) => z.ZodEffects<z.ZodObject<T, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_output"]; }>[k_1]; }, { [k_3 in keyof z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2_1 in keyof T]: T[k_2_1]["_input"]; }>[k_3]; }>, { [k_1 in keyof z.objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_output"]; }>[k_1]; }, { [k_3 in keyof z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2_1 in keyof T]: T[k_2_1]["_input"]; }>[k_3]; }>; | ||
export {}; |
@@ -14,15 +14,3 @@ import { z, ZodArray, ZodEffects, ZodNumber, ZodString, ZodTypeAny } from "zod"; | ||
export declare const repeatableOfType: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], T["_input"][]>; | ||
export declare const formData: (shape: z.ZodRawShape) => z.ZodEffects<z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}>, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}, { | ||
[x: string]: any; | ||
[x: number]: any; | ||
}>; | ||
export declare const formData: <T extends z.ZodRawShape>(shape: T) => z.ZodEffects<z.ZodObject<T, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_output"]; }>[k_1]; }, { [k_3 in keyof z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2_1 in keyof T]: T[k_2_1]["_input"]; }>[k_3]; }>, { [k_1 in keyof z.objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_output"]; }>[k_1]; }, { [k_3 in keyof z.objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: z.objectUtil.addQuestionMarks<{ [k_2_1 in keyof T]: T[k_2_1]["_input"]; }>[k_3]; }>; | ||
export {}; |
{ | ||
"name": "zod-form-data", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"browser": "./browser/index.js", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -61,3 +61,3 @@ import { z, ZodArray, ZodEffects, ZodNumber, ZodString, ZodTypeAny } from "zod"; | ||
export const formData = (shape: z.ZodRawShape) => | ||
export const formData = <T extends z.ZodRawShape>(shape: T) => | ||
z.preprocess( | ||
@@ -64,0 +64,0 @@ preprocessIfValid( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19283
294