From 83fc5018a5df650b7052b584ccff15698164b139 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 7 Dec 2021 20:50:22 +0800 Subject: [PATCH] fix: add generic type support for CmsWidget and CmsWidgetParam (#6018) --- packages/netlify-cms-core/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index dd19bbc2..16dc0972 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -462,16 +462,16 @@ declare module 'netlify-cms-core' { fieldsMetaData: Map; } - export interface CmsWidgetParam { + export interface CmsWidgetParam { name: string; - controlComponent: CmsWidgetControlProps; - previewComponent?: CmsWidgetPreviewProps; + controlComponent: CmsWidgetControlProps; + previewComponent?: CmsWidgetPreviewProps; globalStyles?: any; } - export interface CmsWidget { - control: CmsWidgetControlProps; - preview?: CmsWidgetPreviewProps; + export interface CmsWidget { + control: CmsWidgetControlProps; + preview?: CmsWidgetPreviewProps; globalStyles?: any; }