mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 22:40:50 +08:00
[quill] getSelection can return undefined (#28736)
This commit is contained in:
3
types/quill/index.d.ts
vendored
3
types/quill/index.d.ts
vendored
@@ -186,7 +186,8 @@ export class Quill implements EventEmitter {
|
||||
blur(): void;
|
||||
focus(): void;
|
||||
getBounds(index: number, length?: number): BoundsStatic;
|
||||
getSelection(focus?: boolean): RangeStatic;
|
||||
getSelection(focus: true): RangeStatic;
|
||||
getSelection(focus?: false): RangeStatic | null;
|
||||
hasFocus(): boolean;
|
||||
setSelection(index: number, length: number, source?: Sources): void;
|
||||
setSelection(range: RangeStatic, source?: Sources): void;
|
||||
|
||||
Reference in New Issue
Block a user