From 11413d1988d3d7e081dc29e16356a85597885cd9 Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Mon, 6 Aug 2018 20:13:55 +0100 Subject: [PATCH] quill: fix signature for clipboard api --- types/quill/index.d.ts | 2 +- types/quill/quill-tests.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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() {