Skip to content

Commit befcce4

Browse files
committed
fix: explicitly specify a type of match method.
1 parent a7f8a88 commit befcce4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/router/reg-exp-router/prepared-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class PreparedRegExpRouter<T> implements Router<T> {
6464
return this.#matchers
6565
}
6666

67-
match = match
67+
match: typeof match<Router<T>, T> = match
6868
}
6969

7070
export const buildInitParams: (params: {

src/router/reg-exp-router/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class RegExpRouter<T> implements Router<T> {
205205
}
206206
}
207207

208-
match = match;
208+
match: typeof match<Router<T>, T> = match;
209209

210210
[buildAllMatchersKey](): MatcherMap<T> {
211211
const matchers: MatcherMap<T> = {}

0 commit comments

Comments
 (0)