types: expose Inject type (#7985)

Co-authored-by: florent.catiau <florent.catiau@veepee.com>
This commit is contained in:
Florent Catiau-Tristant 2020-09-02 11:58:19 +02:00 committed by GitHub
parent eaeecbe370
commit ff6717904e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,8 @@ export interface Context {
}
export type Middleware = string | ((ctx: Context, cb: Function) => Promise<void> | void)
export type Plugin = (ctx: Context, inject: (key: string, value: any) => void) => Promise<void> | void
export type Inject = (key: string, value: any) => void
export type Plugin = (ctx: Context, inject: Inject) => Promise<void> | void
export interface Transition {
name?: string