fix(type-defs): signature for CMS.registerWidget (#3386)

registerWidget can be called with a single argument `CmsWidgetParam`
This commit is contained in:
Marcin Hagmajer 2020-03-09 08:45:12 +01:00 committed by GitHub
parent 1090afd31c
commit 9c0f618148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ declare module 'netlify-cms-core' {
registerPreviewTemplate: (name: string, component: ComponentType) => void;
registerWidget: (
widget: string | CmsWidgetParam,
control: ComponentType,
control?: ComponentType,
preview?: ComponentType,
) => void;
registerWidgetValueSerializer: (