Skip to content

Commit 4dc9373

Browse files
committed
api: export additional types
1 parent b36d7a3 commit 4dc9373

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Router, { RouterOptions } from '@koa/router'
2-
import { default as Koa } from 'koa'
2+
import Koa from 'koa'
33
import type { NextApiRequest, NextApiResponse } from 'next'
44
import onFinished from 'on-finished'
55

@@ -11,7 +11,9 @@ declare module 'koa' {
1111
}
1212
}
1313

14-
type KoaOptions = {
14+
export type { Router, RouterOptions }
15+
16+
export type KoaOptions = {
1517
env?: string
1618
keys?: string[]
1719
proxy?: boolean

0 commit comments

Comments
 (0)