From 73fb208f9819e3e58eba5a8a5a814e6376bf77ce Mon Sep 17 00:00:00 2001 From: Dmitry Kharitonov Date: Sat, 29 Apr 2017 01:06:09 +0400 Subject: [PATCH] Update index.d.ts (#16212) Add `origin` param to `doc.replaceRange` --- types/codemirror/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index d0b2dd6511..561d311540 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -439,7 +439,7 @@ declare namespace CodeMirror { /** Replace the part of the document between from and to with the given string. from and to must be {line, ch} objects. to can be left off to simply insert the string at position from. */ - replaceRange(replacement: string, from: CodeMirror.Position, to?: CodeMirror.Position): void; + replaceRange(replacement: string, from: CodeMirror.Position, to?: CodeMirror.Position, origin?: string): void; /** Get the content of line n. */ getLine(n: number): string;