[quill] getSelection can return undefined (#28736)

This commit is contained in:
Sean Zhu
2018-09-10 14:46:21 -07:00
committed by Ryan Cavanaugh
parent 6044dd7c47
commit 2b62080d62

View File

@@ -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;