fix: make type partial (#5514)

This commit is contained in:
Nick the Sick 2024-08-21 08:12:19 +02:00
parent dbcdaad30a
commit c076a0e3bb
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC

View File

@ -100,7 +100,7 @@ export interface EditorOptions {
*
* @default true
*/
enableCoreExtensions: boolean | Record<'editable' | 'clipboardTextSerializer' | 'commands' | 'focusEvents' | 'keymap' | 'tabindex', false>;
enableCoreExtensions?: boolean | Partial<Record<'editable' | 'clipboardTextSerializer' | 'commands' | 'focusEvents' | 'keymap' | 'tabindex', false>>;
/**
* If `true`, the editor will check the content for errors on initialization.
* Emitting the `contentError` event if the content is invalid.