add configuration typing for matchBrackets addon

This commit is contained in:
Sixin Li
2015-09-23 03:03:15 -04:00
parent 32029fcb4e
commit 6268433bd9
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;
}
}