Skip to content

Commit 3e323e9

Browse files
committed
feat: simplify the type of match method
1 parent 933a833 commit 3e323e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

matcher.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ export type Matcher<T> = {
2828
* @returns An async iterator over matched `IdItem` elements.
2929
*/
3030
match<
31-
M extends MatchParams<T>,
32-
V extends M extends MatchParams<infer V> ? V : never,
31+
V extends T,
3332
>(
3433
denops: Denops,
35-
params: M,
34+
params: MatchParams<V>,
3635
options: { signal?: AbortSignal },
3736
): AsyncIterableIterator<IdItem<V>>;
3837
};

0 commit comments

Comments
 (0)