1 | interface RootPath {
|
2 | /**
|
3 | * Application root directory absolute path
|
4 | */
|
5 | path: string;
|
6 |
|
7 | /**
|
8 | * Resolves relative path from root to absolute path
|
9 | * @param {string} pathToModule
|
10 | * @returns {string}
|
11 | */
|
12 | resolve(pathToModule: string): string;
|
13 |
|
14 | /**
|
15 | * Resolve module by relative addressing from root
|
16 | * @param {string} pathToModule
|
17 | * @returns {*}
|
18 | */
|
19 | require(pathToModule: string): any;
|
20 |
|
21 | /**
|
22 | * Explicitly set root path
|
23 | * @param {string} explicitlySetPath
|
24 | */
|
25 | setPath(explicitlySetPath: string): void;
|
26 |
|
27 | toString(): string;
|
28 | }
|
29 | declare const RootPath: RootPath;
|
30 | export = RootPath;
|