Skip to content

Commit 3c3c6b4

Browse files
committed
fix: type constraint of Matcher
1 parent 1c1d937 commit 3c3c6b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matcher.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export type MatchParams<T> = {
1919
* Matcher that filters items based on user input.
2020
*/
2121
export type Matcher<T> = {
22+
__phantom?: T; // This is required for type constraint.
23+
2224
/**
2325
* Matches items against the provided query.
2426
*

0 commit comments

Comments
 (0)