Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Add plain middleware function type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Oct 24, 2017
1 parent 729ba60 commit 2ad527e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export type Middleware = (ctx: Context & IContext, done?: () => any) =>
}
| IterableIterator<void | Promise<void>>
| AsyncIterableIterator<void | Promise<void>>
| Promise<void>
| void

export type Plugin = (routeConfig: any) => RouteConfig

Expand Down

0 comments on commit 2ad527e

Please sign in to comment.