@types/app-root-path
Advanced tools
| // Type definitions for app-root-path 1.2.1 | ||
| // Project: https://github.com/inxilpro/node-app-root-path | ||
| // Definitions by: Shant Marouti <https://github.com/shantmarouti> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| interface RootPath { | ||
| /** | ||
| * Application root directory absolute path | ||
| * @type {string} | ||
| */ | ||
| path: string; | ||
| /** | ||
| * Resolves relative path from root to absolute path | ||
| * @param {string} pathToModule | ||
| * @returns {string} | ||
| */ | ||
| resolve(pathToModule: string): string; | ||
| /** | ||
| * Resolve module by relative addressing from root | ||
| * @param {string} pathToModule | ||
| * @returns {*} | ||
| */ | ||
| require(pathToModule: string): any; | ||
| /** | ||
| * Explicitly set root path | ||
| * @param {string} explicitlySetPath | ||
| */ | ||
| setPath(explicitlySetPath: string): void; | ||
| toString(): string; | ||
| } | ||
| declare const RootPath: RootPath; | ||
| export = RootPath; |
| { | ||
| "name": "@types/app-root-path", | ||
| "version": "1.2.2", | ||
| "version": "1.2.3", | ||
| "description": "TypeScript definitions for app-root-path 1.2.1", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
| "dependencies": {}, | ||
| "typings": "app-root-path.d.ts" | ||
| "typings": "index.d.ts" | ||
| } |
@@ -11,9 +11,9 @@ # Installation | ||
| Additional Details | ||
| * Last updated: Fri, 19 Aug 2016 15:08:18 GMT | ||
| * File structure: DeclareModule | ||
| * Last updated: Mon, 22 Aug 2016 18:53:13 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Global values: none | ||
| * Global values: RootPath | ||
| # Credits | ||
| These definitions were written by Shant Marouti <https://github.com/shantmarouti>. |
| { | ||
| "authors": "Shant Marouti <https://github.com/shantmarouti>", | ||
| "definitionFilename": "app-root-path.d.ts", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
@@ -13,4 +13,6 @@ "moduleDependencies": [], | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "DeclareModule", | ||
| "globals": [], | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "RootPath" | ||
| ], | ||
| "declaredModules": [ | ||
@@ -20,6 +22,6 @@ "app-root-path" | ||
| "files": [ | ||
| "app-root-path.d.ts" | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "2cfed8535485c54839a37d309d22d536b23cd5dc15d3b73cbca6bc735cfb5763" | ||
| "contentHash": "1035f6eabbd846b6f43546cfbcd01c175dd720f1551d18b975dec81bb7862100" | ||
| } |
| // Type definitions for app-root-path 1.2.1 | ||
| // Project: https://github.com/inxilpro/node-app-root-path | ||
| // Definitions by: Shant Marouti <https://github.com/shantmarouti> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| declare module 'app-root-path' { | ||
| interface RootPath { | ||
| /** | ||
| * Application root directory absolute path | ||
| * @type {string} | ||
| */ | ||
| path: string; | ||
| /** | ||
| * Resolves relative path from root to absolute path | ||
| * @param {string} pathToModule | ||
| * @returns {string} | ||
| */ | ||
| resolve(pathToModule: string): string; | ||
| /** | ||
| * Resolve module by relative addressing from root | ||
| * @param {string} pathToModule | ||
| * @returns {*} | ||
| */ | ||
| require(pathToModule: string): any; | ||
| /** | ||
| * Explicitly set root path | ||
| * @param {string} explicitlySetPath | ||
| */ | ||
| setPath(explicitlySetPath: string): void; | ||
| toString(): string; | ||
| } | ||
| var RootPath: RootPath; | ||
| export = RootPath; | ||
| } |
55
1.85%2780
-4.76%