mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Add GitHubElectron.App.getAppPath()
Electron v0.30.0 introduced it. https://github.com/atom/electron/releases/tag/v0.30.0
This commit is contained in:
4
github-electron/github-electron.d.ts
vendored
4
github-electron/github-electron.d.ts
vendored
@@ -855,6 +855,10 @@ declare module GitHubElectron {
|
||||
* cleanup code will not run.
|
||||
*/
|
||||
terminate(): void;
|
||||
/**
|
||||
* Returns the current application directory.
|
||||
*/
|
||||
getAppPath(): string;
|
||||
/**
|
||||
* @param name One of: home, appData, userData, cache, userCache, temp, userDesktop, exe, module
|
||||
* @returns The path to a special directory or file associated with name.
|
||||
|
||||
Reference in New Issue
Block a user