Skip to content

Commit 091c740

Browse files
committed
update TS types for attachRouter router argument.
1 parent 8964ad9 commit 091c740

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/sweet-dogs-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nextjs-koa-api': patch
3+
---
4+
5+
update TS types for `attachRouter` `router` argument.

lib/koa-api/src/koa-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function withKoaApi(koa: KoaApi<any, any>) {
108108
export function attachRouter(
109109
path: string,
110110
app: KoaApi<any, any>,
111-
router: Router
111+
router: Router<any, any>
112112
) {
113113
app.use(router.prefix(path).routes()).use(router.allowedMethods())
114114
}

0 commit comments

Comments
 (0)