mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-26 14:15:57 +08:00
Restructure to support old versions (#13811)
* Restructure to support old versions * Fix tests
This commit is contained in:
4
codemirror/codemirror-matchbrackets.d.ts
vendored
4
codemirror/codemirror-matchbrackets.d.ts
vendored
@@ -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;
|
||||
|
||||
4
codemirror/codemirror-runmode.d.ts
vendored
4
codemirror/codemirror-runmode.d.ts
vendored
@@ -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.
|
||||
|
||||
4
codemirror/codemirror-showhint.d.ts
vendored
4
codemirror/codemirror-showhint.d.ts
vendored
@@ -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
|
||||
|
||||
4
codemirror/searchcursor.d.ts
vendored
4
codemirror/searchcursor.d.ts
vendored
@@ -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 -
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user