mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
types: expose Inject
type (#7985)
Co-authored-by: florent.catiau <florent.catiau@veepee.com>
This commit is contained in:
parent
eaeecbe370
commit
ff6717904e
3
packages/types/app/index.d.ts
vendored
3
packages/types/app/index.d.ts
vendored
@ -50,7 +50,8 @@ export interface Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type Middleware = string | ((ctx: Context, cb: Function) => Promise<void> | void)
|
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 {
|
export interface Transition {
|
||||||
name?: string
|
name?: string
|
||||||
|
Loading…
Reference in New Issue
Block a user