mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
251 B
TypeScript
10 lines
251 B
TypeScript
import * as root from 'app-root-path';
|
|
|
|
let resolvedPath: string;
|
|
resolvedPath = root.resolve('../dir');
|
|
resolvedPath = root.path;
|
|
resolvedPath = root.toString();
|
|
let resolvedModule: any = root.require('app-root-path');
|
|
root.setPath('C:\\app-root');
|
|
|