fix: add missing generic type to registerPreviewTemplate (#3597)
This commit is contained in:
parent
718bd84a83
commit
36ae69c96e
2
packages/netlify-cms-core/index.d.ts
vendored
2
packages/netlify-cms-core/index.d.ts
vendored
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user