zod-form-data
Advanced tools
Comparing version 1.3.2-beta.0 to 2.0.0
@@ -56,5 +56,9 @@ import { ZodString, ZodNumber, z, ZodArray, ZodTypeAny, ZodEffects, ZodObject } from 'zod'; | ||
declare const repeatableOfType: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], T["_input"][]>; | ||
type FormDataLikeInput = { | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
}; | ||
type FormDataType = { | ||
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>>; | ||
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T>; | ||
<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>; | ||
}; | ||
@@ -61,0 +65,0 @@ declare const json: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<T, T["_output"], T["_input"]>; |
{ | ||
"name": "zod-form-data", | ||
"version": "1.3.2-beta.0", | ||
"version": "2.0.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
@@ -117,5 +117,18 @@ import { setPath } from "set-get"; | ||
type FormDataLikeInput = { | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
}; | ||
type FormDataType = { | ||
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>>; | ||
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T>; | ||
<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 | ||
>; | ||
}; | ||
@@ -122,0 +135,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
308556
1741
1
2