types: add enablePreview to context (#8638)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Alexander Lichter 2021-01-17 11:59:56 +01:00 committed by GitHub
parent 3b644b0621
commit 80af61c09e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,8 @@ export interface Context {
error(params: NuxtError): void
nuxtState: NuxtState
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