Skip to content

Commit

Permalink
fix(io-ts resolver): types (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
impl authored Oct 14, 2022
1 parent 467b6ac commit 4afc03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io-ts/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ResolverResult,
} from 'react-hook-form';

export type Resolver = <T, TFieldValues, TContext>(
export type Resolver = <T, TFieldValues extends FieldValues, TContext>(
codec: t.Decoder<FieldValues, T>,
) => (
values: TFieldValues,
Expand Down

0 comments on commit 4afc03b

Please sign in to comment.