Merge pull request #24365 from sjml/patch-1

CodeMirror: Fixing return values from TextMarker.find()
This commit is contained in:
Nathan Shively-Sanders
2018-03-26 10:22:44 -07:00
committed by GitHub
+1 -1
View File
@@ -669,7 +669,7 @@ declare namespace CodeMirror {
/** Returns a {from, to} object (both holding document positions), indicating the current position of the marked range,
or undefined if the marker is no longer in the document. */
find(): CodeMirror.Range;
find(): {from: CodeMirror.Position, to: CodeMirror.Position};
/** Returns an object representing the options for the marker. If copyWidget is given true, it will clone the value of the replacedWith option, if any. */
getOptions(copyWidget: boolean): CodeMirror.TextMarkerOptions;