fix: add missing generic type to registerPreviewTemplate (#3597)

This commit is contained in:
Kunal Kundu 2020-04-13 21:18:55 +05:30 committed by GitHub
parent 718bd84a83
commit 36ae69c96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ declare module 'netlify-cms-core' {
registerLocale: (locale: string, phrases: CmsLocalePhrases) => void; registerLocale: (locale: string, phrases: CmsLocalePhrases) => void;
registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void; registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void;
registerPreviewStyle: (filePath: string, options?: PreviewStyleOptions) => void; registerPreviewStyle: (filePath: string, options?: PreviewStyleOptions) => void;
registerPreviewTemplate: (name: string, component: ComponentType) => void; registerPreviewTemplate: (name: string, component: ComponentType<P>) => void;
registerWidget: ( registerWidget: (
widget: string | CmsWidgetParam, widget: string | CmsWidgetParam,
control?: ComponentType, control?: ComponentType,