From 3f351ea745a9a464d695c2574d43c9894db3fea9 Mon Sep 17 00:00:00 2001 From: stefanprobst Date: Sun, 30 May 2021 14:11:28 +0200 Subject: [PATCH] fix(types): mark registerEventListener options as optional (#5443) --- packages/netlify-cms-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index cc7d67f9..1b584483 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -550,7 +550,7 @@ declare module 'netlify-cms-core' { registerEditorComponent: (options: EditorComponentOptions) => void; registerEventListener: ( eventListener: CmsEventListener, - options: CmsEventListenerOptions, + options?: CmsEventListenerOptions, ) => void; registerLocale: (locale: string, phrases: CmsLocalePhrases) => void; registerMediaLibrary: (mediaLibrary: CmsMediaLibrary, options?: CmsMediaLibraryOptions) => void;