mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add configuration typing for matchBrackets addon
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user