mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
types: add enablePreview
to context (#8638)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
3b644b0621
commit
80af61c09e
2
packages/types/app/index.d.ts
vendored
2
packages/types/app/index.d.ts
vendored
@ -87,6 +87,8 @@ export interface Context {
|
|||||||
error(params: NuxtError): void
|
error(params: NuxtError): void
|
||||||
nuxtState: NuxtState
|
nuxtState: NuxtState
|
||||||
beforeNuxtRender(fn: (params: { Components: VueRouter['getMatchedComponents'], nuxtState: NuxtState }) => void): void
|
beforeNuxtRender(fn: (params: { Components: VueRouter['getMatchedComponents'], nuxtState: NuxtState }) => void): void
|
||||||
|
enablePreview?: (previewData?: Record<string, any>) => void
|
||||||
|
$preview?: Record<string, any>
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
|
Loading…
Reference in New Issue
Block a user