mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
move state from codemirror-showhint.d.ts to codemirror.d.ts
This commit is contained in:
2
codemirror/codemirror-showhint.d.ts
vendored
2
codemirror/codemirror-showhint.d.ts
vendored
@@ -39,8 +39,6 @@ declare module CodeMirror {
|
||||
/** An extension of the existing CodeMirror typings for the Editor.on("keyup", func) syntax */
|
||||
on(eventName: string, handler: (doc: CodeMirror.Doc, event: any) => void): void;
|
||||
off(eventName: string, handler: (doc: CodeMirror.Doc, event: any) => void): void;
|
||||
/** Extend CodeMirror.Editor with a state object, so that the Editor.state.completionActive property is reachable*/
|
||||
state: any;
|
||||
}
|
||||
|
||||
interface Doc {
|
||||
|
||||
5
codemirror/codemirror.d.ts
vendored
5
codemirror/codemirror.d.ts
vendored
@@ -390,6 +390,9 @@ declare module CodeMirror {
|
||||
The handler may mess with the style of the resulting element, or add event handlers, but should not try to change the state of the editor. */
|
||||
on(eventName: 'renderLine', handler: (instance: CodeMirror.Editor, line: number, element: HTMLElement) => void ): void;
|
||||
off(eventName: 'renderLine', handler: (instance: CodeMirror.Editor, line: number, element: HTMLElement) => void ): void;
|
||||
|
||||
/** Expose the state object, so that the Editor.state.completionActive property is reachable*/
|
||||
state: any;
|
||||
}
|
||||
|
||||
interface EditorFromTextArea extends Editor {
|
||||
@@ -589,6 +592,8 @@ declare module CodeMirror {
|
||||
/** The reverse of posFromIndex. */
|
||||
indexFromPos(object: CodeMirror.Position): number;
|
||||
|
||||
/** Expose the state object, so that the Doc.state.completionActive property is reachable*/
|
||||
state: any;
|
||||
}
|
||||
|
||||
interface LineHandle {
|
||||
|
||||
Reference in New Issue
Block a user