From 3e323e92e48282648eedd5eef398a5a53efc5ceb Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 10 Nov 2024 04:04:26 +0900 Subject: [PATCH] feat: simplify the type of `match` method --- matcher.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/matcher.ts b/matcher.ts index 6f35066..5839a08 100644 --- a/matcher.ts +++ b/matcher.ts @@ -28,11 +28,10 @@ export type Matcher = { * @returns An async iterator over matched `IdItem` elements. */ match< - M extends MatchParams, - V extends M extends MatchParams ? V : never, + V extends T, >( denops: Denops, - params: M, + params: MatchParams, options: { signal?: AbortSignal }, ): AsyncIterableIterator>; };