Skip to content

Commit 442a0c3

Browse files
committed
fix: make isMatching(p) infer the pattern as a const type parameter
1 parent 2352f00 commit 442a0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/is-matching.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { matchPattern } from './internals/helpers';
1717
* return input.name
1818
* }
1919
*/
20-
export function isMatching<p extends Pattern<unknown>>(
20+
export function isMatching<const p extends Pattern<unknown>>(
2121
pattern: p
2222
): (value: unknown) => value is P.infer<p>;
2323
/**

0 commit comments

Comments
 (0)