From 80af61c09e41ca6e37d3bdab3c98cbdda24acc95 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Sun, 17 Jan 2021 11:59:56 +0100 Subject: [PATCH] types: add `enablePreview` to context (#8638) Co-authored-by: Daniel Roe --- packages/types/app/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/types/app/index.d.ts b/packages/types/app/index.d.ts index e645df137c..677d005bac 100644 --- a/packages/types/app/index.d.ts +++ b/packages/types/app/index.d.ts @@ -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) => void + $preview?: Record } // eslint-disable-next-line @typescript-eslint/ban-types