mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
CodeMirror: To Parameter is optional in replaceRange (#12035)
This commit is contained in:
committed by
Masahiro Wakame
parent
8b73f40dc9
commit
03b3450d08
2
codemirror/codemirror.d.ts
vendored
2
codemirror/codemirror.d.ts
vendored
@@ -427,7 +427,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): void;
|
||||
|
||||
/** Get the content of line n. */
|
||||
getLine(n: number): string;
|
||||
|
||||
Reference in New Issue
Block a user