diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index 5c492b6b..15c35da3 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -146,14 +146,14 @@ declare module 'netlify-cms-core' { export interface CmsWidgetParam { name: string; - controlComponent: ComponentType; - previewComponent?: ComponentType; + controlComponent: ComponentType; + previewComponent?: ComponentType; globalStyles: any; } export interface CmsWidget { - control: ComponentType; - preview?: ComponentType; + control: ComponentType; + preview?: ComponentType; globalStyles?: any; } @@ -173,13 +173,13 @@ declare module 'netlify-cms-core' { [name: string]: CmsRegistryBackend; }; templates: { - [name: string]: ComponentType; + [name: string]: ComponentType; }; previewStyles: PreviewStyle[]; widgets: { [name: string]: CmsWidget; }; - editorComponents: Map; + editorComponents: Map>; widgetValueSerializers: { [name: string]: CmsWidgetValueSerializer; }; @@ -191,11 +191,11 @@ declare module 'netlify-cms-core' { export interface CMS { getBackend: (name: string) => CmsRegistryBackend | undefined; - getEditorComponents: () => Map; + getEditorComponents: () => Map>; getLocale: (locale: string) => CmsLocalePhrases | undefined; getMediaLibrary: (name: string) => CmsMediaLibrary | undefined; getPreviewStyles: () => PreviewStyle[]; - getPreviewTemplate: (name: string) => ComponentType | undefined; + getPreviewTemplate: (name: string) => ComponentType | undefined; getWidget: (name: string) => CmsWidget | undefined; getWidgetValueSerializer: (widgetName: string) => CmsWidgetValueSerializer | undefined; init: (options?: InitOptions) => void; @@ -204,11 +204,11 @@ declare module 'netlify-cms-core' { registerLocale: (locale: string, phrases: CmsLocalePhrases) => void; registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void; registerPreviewStyle: (filePath: string, options?: PreviewStyleOptions) => void; - registerPreviewTemplate: (name: string, component: ComponentType

) => void; + registerPreviewTemplate: (name: string, component: ComponentType) => void; registerWidget: ( widget: string | CmsWidgetParam, - control?: ComponentType, - preview?: ComponentType, + control?: ComponentType, + preview?: ComponentType, ) => void; registerWidgetValueSerializer: ( widgetName: string,