type UnwrapFieldValidateOrFn<TParentData, TName, TValidateOrFn, TFormValidateOrFn> =
| [TFormValidateOrFn] extends [StandardSchemaV1<any, infer TStandardOut>] ? TName extends keyof TStandardOut ? StandardSchemaV1Issue[] : undefined : undefined
| UnwrapFormValidateOrFn<TFormValidateOrFn> extends infer TFormValidateVal ? TFormValidateVal extends object ? TName extends keyof TFormValidateVal["fields"] ? TFormValidateVal["fields"][TName] : undefined : undefined : never
| [TValidateOrFn] extends [FieldValidateFn<any, any, any>] ? ReturnType<TValidateOrFn> : [TValidateOrFn] extends [StandardSchemaV1<any, any>] ? StandardSchemaV1Issue[] : undefined;
type UnwrapFieldValidateOrFn<TParentData, TName, TValidateOrFn, TFormValidateOrFn> =
| [TFormValidateOrFn] extends [StandardSchemaV1<any, infer TStandardOut>] ? TName extends keyof TStandardOut ? StandardSchemaV1Issue[] : undefined : undefined
| UnwrapFormValidateOrFn<TFormValidateOrFn> extends infer TFormValidateVal ? TFormValidateVal extends object ? TName extends keyof TFormValidateVal["fields"] ? TFormValidateVal["fields"][TName] : undefined : undefined : never
| [TValidateOrFn] extends [FieldValidateFn<any, any, any>] ? ReturnType<TValidateOrFn> : [TValidateOrFn] extends [StandardSchemaV1<any, any>] ? StandardSchemaV1Issue[] : undefined;
Defined in: packages/form-core/src/FieldApi.ts:114
• TParentData
• TName extends DeepKeys<TParentData>
• TValidateOrFn extends undefined | FieldValidateOrFn<any, any, any>
• TFormValidateOrFn extends undefined | FormValidateOrFn<any>
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.