Skip to main content

UnwrapFormAsyncValidateOrFn

还没翻译译自英文(tanstack.com)本页 5 段都还没译

type UnwrapFormAsyncValidateOrFn<TValidateOrFn> = [TValidateOrFn] extends [FormValidateAsyncFn<any>] ? ExtractGlobalFormError<Awaited<ReturnType<TValidateOrFn>>> : [TValidateOrFn] extends [StandardSchemaV1<any, any>] ? Record<string, StandardSchemaV1Issue[]> : undefined;

Defined in: packages/form-core/src/FormApi.ts:177

Type Parameters

TValidateOrFn

TValidateOrFn extends undefined | FormAsyncValidateOrFn<any>