Skip to content

Commit

Permalink
馃啂 close #8689 fix type inconsistency with control (#8691)
Browse files Browse the repository at this point in the history
* close #8689 fix type inconsisetncy with control

* fix regression

* revert to any

* update api extrator
  • Loading branch information
bluebill1049 committed Jul 15, 2022
1 parent 8028e4d commit 33820e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export type UseFieldArraySwap = (indexA: number, indexB: number) => void;
export type UseFieldArrayUpdate<TFieldValues extends FieldValues, TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>> = (index: number, value: FieldArray<TFieldValues, TFieldArrayName>) => void;

// @public
export function useForm<TFieldValues extends FieldValues = FieldValues, TContext extends object = object>(props?: UseFormProps<TFieldValues, TContext>): UseFormReturn<TFieldValues, TContext>;
export function useForm<TFieldValues extends FieldValues = FieldValues, TContext = any>(props?: UseFormProps<TFieldValues, TContext>): UseFormReturn<TFieldValues, TContext>;

// @public
export type UseFormClearErrors<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[]) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { useSubscribe } from './useSubscribe';
*/
export function useForm<
TFieldValues extends FieldValues = FieldValues,
TContext extends object = object,
TContext = any,
>(
props: UseFormProps<TFieldValues, TContext> = {},
): UseFormReturn<TFieldValues, TContext> {
Expand Down

0 comments on commit 33820e6

Please sign in to comment.