Skip to content

Commit

Permalink
v5: update isMatching to take a value of type unknown instead of any
Browse files Browse the repository at this point in the history
  • Loading branch information
gvergnaud committed Jun 9, 2023
1 parent 03dbfe6 commit f12e782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/is-matching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function isMatching<p extends Pattern<unknown>>(
*/
export function isMatching<p extends Pattern<unknown>>(
pattern: p,
value: any
): value is MatchedValue<any, P.infer<p>>;
value: unknown
): value is MatchedValue<unknown, P.infer<p>>;

export function isMatching<p extends Pattern<any>>(
...args: [pattern: p, value?: any]
Expand Down

0 comments on commit f12e782

Please sign in to comment.