@types/app-root-dir
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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 .

/@types/app-root-dir/

    Package Sidebar

    Install

    npm i @types/app-root-dir

    Weekly Downloads

    3,513

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    3.19 kB

    Total Files

    5

    Last publish

    Collaborators

    • types