Installation
npm install --save @types/app-root-dir
Summary
This package contains type definitions for app-root-dir (https://github.com/philidem/node-app-root-dir).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-dir.
index.d.ts
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;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by .