Comparing version 0.6.1 to 0.6.2
@@ -19,3 +19,3 @@ import { Field } from "./field"; | ||
*/ | ||
export type FormSnapshot<T extends FormData> = { | ||
export type FormSnapshot<T extends FormData> = T extends Form<infer FormType> ? FormSnapshot<FormType> : { | ||
[K in keyof T]: T[K] extends Field<any> ? FieldSnapshot<T[K]> : T[K] extends Form<infer FormType> ? FormSnapshot<FormType> : T[K] extends FormArray<Form<infer FormType>> ? FormSnapshot<FormType>[] : never; | ||
@@ -26,3 +26,3 @@ }; | ||
*/ | ||
export type InvalidFormSnapshot<T extends FormData> = { | ||
export type InvalidFormSnapshot<T extends FormData> = T extends Form<infer FormType> ? InvalidFormSnapshot<FormType> : { | ||
[K in keyof T]: T[K] extends Field<any> ? InvalidFieldSnapshot<T[K]> : T[K] extends Form<infer FormType> ? InvalidFormSnapshot<FormType> : T[K] extends FormArray<Form<infer FormType>> ? InvalidFormSnapshot<FormType>[] : never; | ||
@@ -29,0 +29,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"repository": "gustavohenke/fielded", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "homepage": "https://gustavohenke.github.io/fielded/", |
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
48065