Nice Philanthropist Metalhead

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

    0.1.1 • 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

    // Type definitions for app-root-dir 0.1
    // Project: https://github.com/philidem/node-app-root-dir
    // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
    // 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;

    Additional Details

    • Last updated: Thu, 23 Dec 2021 23:34:15 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by DefinitelyTyped.

    Keywords

    none

    Install

    npm i @types/app-root-dir

    DownloadsWeekly Downloads

    4,364

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.88 kB

    Total Files

    4

    Last publish

    Collaborators

    • types