Missing types on IEditor, fix ICommandRegistry

ICommandRegistry should take a string and object as params. [Docs](https://atom.io/docs/api/v1.5.3/CommandRegistry).
This commit is contained in:
ShMcK
2016-02-28 22:07:25 -08:00
parent 47b0d11d4f
commit 9c3cf45735
+3 -1
View File
@@ -165,7 +165,7 @@ declare module AtomCore {
}
interface ICommandRegistry {
add(selector: string, name: string, callback: (event: any) => void): void; // selector:'atom-editor'|'atom-workspace'
add(target: string, commandName: Object, callback?: (event: any) => void): any; // selector:'atom-editor'|'atom-workspace'
findCommands(params: Object): Object[];
dispatch(selector: any, name:string): void;
}
@@ -589,6 +589,7 @@ declare module AtomCore {
subscriptionCounts: any;
subscriptionsByObject: any; /* WeakMap */
subscriptions: Emissary.ISubscription[];
destroy():void;
mini: any;
@@ -780,6 +781,7 @@ declare module AtomCore {
moveCursorToNextWordBoundary():void;
moveCursorToBeginningOfNextParagraph():void;
moveCursorToBeginningOfPreviousParagraph():void;
moveToBottom():void;
scrollToCursorPosition(options:any):any;
pageUp():void;
pageDown():void;