From cda6a6a9bd581222298721ccef71f69f5d03e52f Mon Sep 17 00:00:00 2001 From: Azharuddin Date: Sun, 10 Dec 2017 02:59:08 +0530 Subject: [PATCH] getSelection does take optional argument --- types/rangy/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rangy/index.d.ts b/types/rangy/index.d.ts index f140895cf6..e28a4d7b1c 100644 --- a/types/rangy/index.d.ts +++ b/types/rangy/index.d.ts @@ -60,7 +60,7 @@ interface RangyStatic { createRange(doc?:Document|Window|HTMLIFrameElement):RangyRange; createRangyRange(doc?:Document|Window|HTMLIFrameElement):RangyRange; getNativeSelection(win?:Window):Selection; - getSelection():RangySelection; + getSelection(doc?:Document|Window|HTMLIFrameElement):RangySelection; addInitListener(listener:(rangy:RangyStatic) => void):any; shim():any; createMissingNativeApi():any;