Files
openpanel/packages/codemod/src/definitions/separated-imports/react-hook-form.ts
Stefan Pejcic 8595a9f4e5 back
2024-05-08 19:58:53 +02:00

139 lines
2.9 KiB
TypeScript

export const exported: string[] = [
"BatchFieldArrayUpdate",
"ChangeHandler",
"Control",
"ControllerFieldState",
"ControllerProps",
"ControllerRenderProps",
"CriteriaMode",
"CustomElement",
"DeepMap",
"DeepPartial",
"DeepPartialSkipArrayKey",
"DefaultValues",
"DelayCallback",
"EmptyObject",
"ErrorOption",
"EventType",
"Field",
"FieldArray",
"FieldArrayMethodProps",
"FieldArrayWithId",
"FieldElement",
"FieldError",
"FieldErrors",
"FieldName",
"FieldNamesMarkedBoolean",
"FieldRefs",
"FieldValue",
"FieldValues",
"FormProviderProps",
"FormState",
"FormStateProxy",
"FormStateSubjectRef",
"GetIsDirty",
"InternalFieldErrors",
"InternalFieldName",
"InternalNameSet",
"IsAny",
"IsFlatObject",
"KeepStateOptions",
"LiteralUnion",
"Message",
"Mode",
"MultipleFieldErrors",
"Names",
"NativeFieldValue",
"NestedValue",
"NonUndefined",
"Noop",
"Primitive",
"ReadFormState",
"Ref",
"RefCallBack",
"RegisterOptions",
"Resolver",
"ResolverError",
"ResolverOptions",
"ResolverResult",
"ResolverSuccess",
"SetFieldValue",
"SetValueConfig",
"Subjects",
"SubmitErrorHandler",
"SubmitHandler",
"TriggerConfig",
"UnpackNestedValue",
"UseControllerProps",
"UseControllerReturn",
"UseFieldArrayProps",
"UseFieldArrayReturn",
"UseFieldArrayReplace",
"UseFormClearErrors",
"UseFormGetValues",
"UseFormHandleSubmit",
"UseReactHookFormProps",
"UseFormRegister",
"UseFormRegisterReturn",
"UseFormReset",
"UseFormResetField",
"UseFormReturn",
"UseFormSetError",
"UseFormSetFocus",
"UseFormSetValue",
"UseFormStateProps",
"UseFormStateReturn",
"UseFormTrigger",
"UseFormUnregister",
"UseFormWatch",
"UseWatchProps",
"Validate",
"ValidateResult",
"ValidationMode",
"ValidationRule",
"ValidationValue",
"ValidationValueMessage",
"WatchInternal",
"WatchObserver",
"ArrayPath",
"FieldPath",
"FieldPathValue",
"FieldPathValues",
"BrowserNativeObject",
"DeepRequired",
"FieldErrorsImpl",
"IsNever",
"Merge",
"SetFocusOptions",
"UseFieldArrayAppend",
"UseFieldArrayInsert",
"UseFieldArrayMove",
"UseFieldArrayPrepend",
"UseFieldArrayRemove",
"UseFieldArraySwap",
"UseFieldArrayUpdate",
"UseFormGetFieldState",
"FieldArrayPath",
"FieldArrayPathValue",
"FieldPathByValue",
"PathString",
"Path",
"PathValue",
"appendErrors",
"get",
"set",
"useController",
"useFieldArray",
"useReactHookForm",
"useFormContext",
"useFormState",
"useWatch",
"Controller",
"FormProvider",
];
export const rename: { [key: string]: string } = {
UseReactHookFormProps: "UseFormProps",
useReactHookForm: "useForm",
};