Skip to content

Commit afbc44f

Browse files
committed
v5: update isMatching to take a value of type unknown instead of any
1 parent 03dbfe6 commit afbc44f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/is-matching.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export function isMatching<p extends Pattern<unknown>>(
3535
*/
3636
export function isMatching<p extends Pattern<unknown>>(
3737
pattern: p,
38-
value: any
39-
): value is MatchedValue<any, P.infer<p>>;
38+
value: unknown
39+
): value is P.infer<p>;
4040

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

0 commit comments

Comments
 (0)