We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abda2ac commit a7a0cbfCopy full SHA for a7a0cbf
matcher.ts
@@ -27,9 +27,12 @@ export type Matcher<T> = {
27
* @param options - Additional options, including an abort signal.
28
* @returns An async iterator over matched `IdItem` elements.
29
*/
30
- match(
+ match<
31
+ M extends MatchParams<T>,
32
+ V extends M extends MatchParams<infer V> ? V : never,
33
+ >(
34
denops: Denops,
- params: MatchParams<T>,
35
+ params: M,
36
options: { signal?: AbortSignal },
- ): AsyncIterableIterator<IdItem<T>>;
37
+ ): AsyncIterableIterator<IdItem<V>>;
38
};
0 commit comments