Skip to content

Commit 781c16a

Browse files
authored
Merge pull request #3 from vim-fall/fix-type
feat: simplify the type of `match` method
2 parents 933a833 + 3e323e9 commit 781c16a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

matcher.ts

+2-3
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)