Merge pull request #21304 from demeshkin/codemirror_fix

[Codemirror] Text parameter should be an array in changeObj.update method
This commit is contained in:
Daniel Rosenwasser
2017-11-13 09:28:13 -08:00
committed by GitHub
+1 -1
View File
@@ -692,7 +692,7 @@ declare namespace CodeMirror {
interface EditorChangeCancellable extends CodeMirror.EditorChange {
/** may be used to modify the change. All three arguments to update are optional, and can be left off to leave the existing value for that field intact. */
update(from?: CodeMirror.Position, to?: CodeMirror.Position, text?: string): void;
update(from?: CodeMirror.Position, to?: CodeMirror.Position, text?: string[]): void;
cancel(): void;
}