mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #2385 from borisyankov/def/atom
minor atom doc fixes
This commit is contained in:
Vendored
+10
-1
@@ -15,7 +15,7 @@
|
||||
// if js file include to another npm package (e.g. "space-pen", "mixto" and "emissary").
|
||||
// you should create a separate file.
|
||||
|
||||
// NOTE Document? You should use DevTools hehe...
|
||||
// API documentation : https://atom.io/docs/api/v0.106.0/api/docs/README.md.html
|
||||
|
||||
interface Window {
|
||||
atom: AtomCore.IAtom;
|
||||
@@ -1010,7 +1010,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;
|
||||
@@ -1023,6 +1030,8 @@ declare module AtomCore {
|
||||
new(state:IAtomState):IAtom;
|
||||
}
|
||||
|
||||
// https://atom.io/docs/api/v0.106.0/api/classes/Atom.html
|
||||
/* Global Atom class : instance members */
|
||||
interface IAtom {
|
||||
constructor:IAtomStatic;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user