replace internal module to namespace

This commit is contained in:
vvakame
2016-03-17 02:18:10 +09:00
parent 2f47c75835
commit 14fe4313f4
1139 changed files with 179639 additions and 179639 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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
+5 -5
View File
@@ -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;
+1 -1
View File
@@ -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 -