mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
commit
f86bafa3cd
21
atom/atom.d.ts
vendored
21
atom/atom.d.ts
vendored
@ -941,6 +941,21 @@ declare module AtomCore {
|
||||
// TBD
|
||||
}
|
||||
|
||||
interface IPackage {
|
||||
mainModulePath: string;
|
||||
mainModule: any;
|
||||
enable(): void;
|
||||
disable(): void;
|
||||
isTheme(): boolean;
|
||||
getType(): string;
|
||||
getStylesheetType(): string;
|
||||
load(): IPackage;
|
||||
reset(): void;
|
||||
activate(): Q.Promise<any[]>;
|
||||
activateNow(): void;
|
||||
// TBD
|
||||
}
|
||||
|
||||
interface IPackageManager extends Emissary.IEmitter {
|
||||
packageDirPaths:string[];
|
||||
loadedPackages:any;
|
||||
@ -957,7 +972,7 @@ declare module AtomCore {
|
||||
activate():void;
|
||||
registerPackageActivator(activator:any, types:any):void;
|
||||
activatePackages(packages:any):void;
|
||||
activatePackage(name:string):void;
|
||||
activatePackage(name:string):Q.Promise<IPackage>;
|
||||
deactivatePackages():void;
|
||||
deactivatePackage(name:string):void;
|
||||
getActivePackages():any;
|
||||
@ -1010,14 +1025,14 @@ declare module AtomCore {
|
||||
interface IAtomStatic extends ISerializationStatic<IAtom> {
|
||||
version: number;
|
||||
loadSettings: IAtomSettings;
|
||||
|
||||
|
||||
/* Load or create the Atom environment in the given mode */
|
||||
loadOrCreate(mode:'editor'):IAtom;
|
||||
/* Load or create the Atom environment in the given mode */
|
||||
loadOrCreate(mode:'spec'):IAtom;
|
||||
/* Load or create the Atom environment in the given mode */
|
||||
loadOrCreate(mode:string):IAtom;
|
||||
|
||||
|
||||
loadState(mode:any):void;
|
||||
getStatePath(mode:any):string;
|
||||
getConfigDirPath():string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user