DefinitelyTyped/types/app-root-dir/index.d.ts

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;