Skip to content

Commit a7a0cbf

Browse files
committed
fix: type issue
1 parent abda2ac commit a7a0cbf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

matcher.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ export type Matcher<T> = {
2727
* @param options - Additional options, including an abort signal.
2828
* @returns An async iterator over matched `IdItem` elements.
2929
*/
30-
match(
30+
match<
31+
M extends MatchParams<T>,
32+
V extends M extends MatchParams<infer V> ? V : never,
33+
>(
3134
denops: Denops,
32-
params: MatchParams<T>,
35+
params: M,
3336
options: { signal?: AbortSignal },
34-
): AsyncIterableIterator<IdItem<T>>;
37+
): AsyncIterableIterator<IdItem<V>>;
3538
};

0 commit comments

Comments
 (0)