From 9c3cf457352697a8f30c0a6a3e0cd8cbba0221bf Mon Sep 17 00:00:00 2001 From: ShMcK Date: Sun, 28 Feb 2016 22:07:25 -0800 Subject: [PATCH] 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). --- atom/atom.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/atom.d.ts b/atom/atom.d.ts index 9483f103ca..bf0834dc61 100644 --- a/atom/atom.d.ts +++ b/atom/atom.d.ts @@ -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;