Restructure to support old versions (#13811)

* Restructure to support old versions

* Fix tests
This commit is contained in:
Andy
2017-01-06 12:36:57 -08:00
committed by GitHub
parent 74dc4fdeb9
commit 2f71174636
535 changed files with 3465 additions and 258187 deletions

View File

@@ -5,7 +5,9 @@
// See docs https://codemirror.net/doc/manual.html#addon_matchbrackets
declare namespace CodeMirror {
import * as CodeMirror from "codemirror";
declare module "codemirror" {
interface EditorConfiguration {
// when set to true, causes matching brackets to be highlighted whenever the cursor is next to them
matchBrackets?: boolean;

View File

@@ -5,7 +5,9 @@
// See docs https://codemirror.net/doc/manual.html#addon_runmode
declare namespace CodeMirror {
import * as CodeMirror from "codemirror";
declare module "codemirror" {
/**
* Runs a CodeMirror mode over text without opening an editor instance.

View File

@@ -5,7 +5,9 @@
// See docs https://codemirror.net/doc/manual.html#addon_show-hint
declare namespace CodeMirror {
import * as CodeMirror from "codemirror";
declare module "codemirror" {
var commands: any;
/** Provides a framework for showing autocompletion hints. Defines editor.showHint, which takes an optional

View File

@@ -3,7 +3,9 @@
// Definitions by: jacqt <https://github.com/jacqt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace CodeMirror {
import * as CodeMirror from "codemirror";
declare module "codemirror" {
interface Doc {
/** This method can be used to implement search/replace functionality.
* `query`: This can be a regular * expression or a string (only strings will match across lines -

View File

@@ -15,6 +15,14 @@
},
"files": [
"index.d.ts",
"codemirror-tests.ts"
"codemirror-tests.ts",
"codemirror-matchbrackets.d.ts",
"codemirror-matchbrackets-tests.ts",
"codemirror-runmode.d.ts",
"codemirror-runmode-tests.ts",
"codemirror-showhint.d.ts",
"codemirror-showhint-tests.ts",
"searchcursor.d.ts",
"searchcursor-tests.ts"
]
}