diff --git a/types/quill/index.d.ts b/types/quill/index.d.ts index 4fdeef44a0..0eda9a4eff 100644 --- a/types/quill/index.d.ts +++ b/types/quill/index.d.ts @@ -43,7 +43,7 @@ export interface KeyboardStatic { } export interface ClipboardStatic { - convert(html: string|Blot): DeltaStatic; + convert(html?: string): DeltaStatic; addMatcher(selectorOrNodeType: string|number, callback: (node: any, delta: DeltaStatic) => DeltaStatic): void; dangerouslyPasteHTML(html: string, source?: Sources): void; dangerouslyPasteHTML(index: number, html: string, source?: Sources): void; diff --git a/types/quill/quill-tests.ts b/types/quill/quill-tests.ts index 96527a8158..073e68f115 100644 --- a/types/quill/quill-tests.ts +++ b/types/quill/quill-tests.ts @@ -148,6 +148,7 @@ function test_setHtmlContents() { const html = "this is a bold text"; const delta = quillEditor.clipboard.convert(html); quillEditor.setContents(delta); + quillEditor.clipboard.convert(); } function test_getSelection() {