Merge pull request #5966 from sixinli/codemirror_matchbrackets

add configuration typing for matchBrackets addon
This commit is contained in:
Masahiro Wakame
2015-09-27 12:39:05 +09:00
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,4 @@
/// <reference path="codemirror.d.ts" />
/// <reference path="codemirror-matchbrackets.d.ts" />
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { matchBrackets: true });
+13
View File
@@ -0,0 +1,13 @@
// Type definitions for CodeMirror
// Project: https://github.com/marijnh/CodeMirror
// Definitions by: Sixin Li <https://github.com/sixinli>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// See docs https://codemirror.net/doc/manual.html#addon_matchbrackets
declare module CodeMirror {
interface EditorConfiguration {
// when set to true, causes matching brackets to be highlighted whenever the cursor is next to them
matchBrackets?: boolean;
}
}