0.1.4 • Published 6 months ago

@types/app-root-dir v0.1.4

Weekly downloads
12,498
License
MIT
Repository
github
Last release
6 months ago

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.