mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
Quill Options Fix to Match Documentation (#29545)
* Quill Options Fix to Match Documentation https://quilljs.com/docs/api/#debug Debug can take a string or boolean. * Version Up * CI Failed * Adding test
This commit is contained in:
2
types/quill/index.d.ts
vendored
2
types/quill/index.d.ts
vendored
@@ -52,7 +52,7 @@ export interface ClipboardStatic {
|
||||
}
|
||||
|
||||
export interface QuillOptionsStatic {
|
||||
debug?: string;
|
||||
debug?: string | boolean;
|
||||
modules?: StringMap;
|
||||
placeholder?: string;
|
||||
readOnly?: boolean;
|
||||
|
||||
@@ -12,6 +12,17 @@ function test_quill() {
|
||||
});
|
||||
}
|
||||
|
||||
function test_quill_opts() {
|
||||
const quillEditor = new Quill('#editor', {
|
||||
modules:
|
||||
{
|
||||
toolbar: { container: "#toolbar" }
|
||||
},
|
||||
theme: 'snow',
|
||||
debug: true,
|
||||
});
|
||||
}
|
||||
|
||||
function test_scroll() {
|
||||
const quillEditor = new Quill('#editor');
|
||||
const blot: Blot = quillEditor.scroll;
|
||||
|
||||
Reference in New Issue
Block a user