mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
replace internal module to namespace
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_matchbrackets
|
||||
|
||||
declare module CodeMirror {
|
||||
declare namespace CodeMirror {
|
||||
interface EditorConfiguration {
|
||||
// when set to true, causes matching brackets to be highlighted whenever the cursor is next to them
|
||||
matchBrackets?: boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_runmode
|
||||
|
||||
declare module CodeMirror {
|
||||
declare namespace CodeMirror {
|
||||
|
||||
/**
|
||||
* Runs a CodeMirror mode over text without opening an editor instance.
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_show-hint
|
||||
|
||||
declare module CodeMirror {
|
||||
declare namespace CodeMirror {
|
||||
var commands: any;
|
||||
|
||||
/** Provides a framework for showing autocompletion hints. Defines editor.showHint, which takes an optional
|
||||
|
||||
Vendored
+5
-5
@@ -6,7 +6,7 @@
|
||||
declare function CodeMirror(host: HTMLElement, options?: CodeMirror.EditorConfiguration): CodeMirror.Editor;
|
||||
declare function CodeMirror(callback: (host: HTMLElement) => void , options?: CodeMirror.EditorConfiguration): CodeMirror.Editor;
|
||||
|
||||
declare module CodeMirror {
|
||||
declare namespace CodeMirror {
|
||||
export var Doc : CodeMirror.DocConstructor;
|
||||
export var Pos: CodeMirror.PositionConstructor;
|
||||
export var Pass: any;
|
||||
@@ -491,8 +491,8 @@ declare module CodeMirror {
|
||||
It may be "start" , "end" , "head"(the side of the selection that moves when you press shift + arrow),
|
||||
or "anchor"(the fixed side of the selection).Omitting the argument is the same as passing "head".A { line , ch } object will be returned. */
|
||||
getCursor(start?: string): CodeMirror.Position;
|
||||
|
||||
/** Retrieves a list of all current selections. These will always be sorted, and never overlap (overlapping selections are merged).
|
||||
|
||||
/** Retrieves a list of all current selections. These will always be sorted, and never overlap (overlapping selections are merged).
|
||||
Each object in the array contains anchor and head properties referring to {line, ch} objects. */
|
||||
listSelections(): { anchor: CodeMirror.Position; head: CodeMirror.Position }[];
|
||||
|
||||
@@ -659,12 +659,12 @@ declare module CodeMirror {
|
||||
new (line: number, ch?: number): Position;
|
||||
(line: number, ch?: number): Position;
|
||||
}
|
||||
|
||||
|
||||
interface Range{
|
||||
from: CodeMirror.Position;
|
||||
to: CodeMirror.Position;
|
||||
}
|
||||
|
||||
|
||||
interface Position {
|
||||
ch: number;
|
||||
line: number;
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: jacqt <https://github.com/jacqt>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module CodeMirror {
|
||||
declare namespace 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 -
|
||||
|
||||
Reference in New Issue
Block a user