We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36d7a3 commit 4dc9373Copy full SHA for 4dc9373
lib/koa-api/src/koa-api.ts
@@ -1,5 +1,5 @@
1
import Router, { RouterOptions } from '@koa/router'
2
-import { default as Koa } from 'koa'
+import Koa from 'koa'
3
import type { NextApiRequest, NextApiResponse } from 'next'
4
import onFinished from 'on-finished'
5
@@ -11,7 +11,9 @@ declare module 'koa' {
11
}
12
13
14
-type KoaOptions = {
+export type { Router, RouterOptions }
15
+
16
+export type KoaOptions = {
17
env?: string
18
keys?: string[]
19
proxy?: boolean
0 commit comments