diff --git a/atom/atom.d.ts b/atom/atom.d.ts index 96b7c849d..0abeda316 100644 --- a/atom/atom.d.ts +++ b/atom/atom.d.ts @@ -1145,6 +1145,18 @@ declare module AtomCore { new(state:IAtomState):IAtom; } + class Disposable { + constructor(disposalAction:any) + dispose():void + } + + class CommandRegistry { + add(target:string, commandName:string, callback:Function):Disposable + findCommands(params:Object):Object[] + dispatch(target:any,commandName:string):void + } + + // https://atom.io/docs/api/v0.106.0/api/classes/Atom.html /* Global Atom class : instance members */ interface IAtom { @@ -1175,6 +1187,8 @@ declare module AtomCore { workspace: IWorkspace; // really exists? end + commands: CommandRegistry; + initialize:Function; // registerRepresentationClass:Function; // registerRepresentationClasses:Function; @@ -1754,6 +1768,8 @@ declare module "atom" { cancel():any; } + + var WorkspaceView:AtomCore.IWorkspaceViewStatic; var Task:AtomCore.ITaskStatic;