createFormControl.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930
  1. import { FieldErrors, FieldValues, UseFormReturn } from '../types';
  2. export declare function createFormControl<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues = TFieldValues>(props: Partial<{
  3. mode: "onBlur" | "onChange" | "onSubmit" | "onTouched" | "all";
  4. disabled: boolean;
  5. reValidateMode: "onBlur" | "onChange" | "onSubmit";
  6. defaultValues: ((payload?: unknown) => Promise<TFieldValues>) | import("../types").DefaultValues<TFieldValues>;
  7. values: TFieldValues;
  8. errors: FieldErrors<TFieldValues>;
  9. resetOptions: Partial<{
  10. keepDirtyValues: boolean;
  11. keepErrors: boolean;
  12. keepDirty: boolean;
  13. keepValues: boolean;
  14. keepDefaultValues: boolean;
  15. keepIsSubmitted: boolean;
  16. keepIsSubmitSuccessful: boolean;
  17. keepTouched: boolean;
  18. keepIsValid: boolean;
  19. keepSubmitCount: boolean;
  20. }> | undefined;
  21. resolver: import("../types").Resolver<TFieldValues, TContext>;
  22. context: TContext;
  23. shouldFocusError: boolean;
  24. shouldUnregister: boolean;
  25. shouldUseNativeValidation: boolean;
  26. progressive: boolean;
  27. criteriaMode: import("../types").CriteriaMode;
  28. delayError: number;
  29. }> | undefined, flushRootRender: () => void): Omit<UseFormReturn<TFieldValues, TContext, TTransformedValues>, 'formState'>;
  30. //# sourceMappingURL=createFormControl.d.ts.map