fix(types): mark registerEventListener options as optional (#5443)

This commit is contained in:
stefanprobst 2021-05-30 14:11:28 +02:00 committed by GitHub
parent 5a8e9802fa
commit 3f351ea745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -550,7 +550,7 @@ declare module 'netlify-cms-core' {
registerEditorComponent: (options: EditorComponentOptions) => void; registerEditorComponent: (options: EditorComponentOptions) => void;
registerEventListener: ( registerEventListener: (
eventListener: CmsEventListener, eventListener: CmsEventListener,
options: CmsEventListenerOptions, options?: CmsEventListenerOptions,
) => void; ) => void;
registerLocale: (locale: string, phrases: CmsLocalePhrases) => void; registerLocale: (locale: string, phrases: CmsLocalePhrases) => void;
registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void; registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void;