zod-form-data
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -61,4 +61,4 @@ import { ZodString, ZodNumber, z, ZodArray, ZodTypeAny, ZodEffects, ZodObject } from 'zod'; | ||
type FormDataType = { | ||
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>, z.output<ZodObject<T>>, FormDataLikeInput>; | ||
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T, z.output<T>, FormDataLikeInput>; | ||
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>, z.output<ZodObject<T>>, FormData | FormDataLikeInput>; | ||
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T, z.output<T>, FormData | FormDataLikeInput>; | ||
}; | ||
@@ -65,0 +65,0 @@ declare const json: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<T, T["_output"], T["_input"]>; |
{ | ||
"name": "zod-form-data", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
@@ -126,3 +126,3 @@ import { setPath } from "set-get"; | ||
z.output<ZodObject<T>>, | ||
FormDataLikeInput | ||
FormData | FormDataLikeInput | ||
>; | ||
@@ -132,3 +132,3 @@ <T extends z.ZodTypeAny>(schema: T): ZodEffects< | ||
z.output<T>, | ||
FormDataLikeInput | ||
FormData | FormDataLikeInput | ||
>; | ||
@@ -135,0 +135,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
308926