mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-02 16:20:07 +00:00
initial commit for tern addon typings. still WIP.
workstream:
This commit is contained in:
3
types/codemirror/codemirror-tern.d.ts
vendored
3
types/codemirror/codemirror-tern.d.ts
vendored
@@ -4,6 +4,7 @@
|
||||
import * as CodeMirror from "codemirror";
|
||||
import * as Tern from "tern";
|
||||
|
||||
|
||||
declare module "codemiror" {
|
||||
|
||||
interface Editor {
|
||||
@@ -41,8 +42,10 @@ declare module "codemiror" {
|
||||
|
||||
selectName: (cm: CodeMirror.Editor) => void;
|
||||
|
||||
|
||||
request: (cm: CodeMirror.Editor, query: string | Tern.QueryRegistry[keyof Tern.QueryRegistry]["query"], callback: (error: any, data?: any) => void, pos?: CodeMirror.Position) => void;
|
||||
|
||||
|
||||
destroy: () => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user