mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
624 B
TypeScript
21 lines
624 B
TypeScript
// Type definitions for app-root-dir 0.1
|
|
// Project: https://github.com/philidem/node-app-root-dir
|
|
// Definitions by: shaochenyang <https://github.com/chenyang-biu>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface AppRootDir {
|
|
// Get the application's root directory
|
|
get(): string;
|
|
/**
|
|
* Set the application's root directory
|
|
* this will set a global so that no matter
|
|
* how many instances of app-root-dir module are installed,
|
|
* they will all return the same directory
|
|
*/
|
|
set(dirname: string): void;
|
|
}
|
|
|
|
declare const AppRootDir: AppRootDir;
|
|
|
|
export = AppRootDir;
|