DefinitelyTyped/app-root-path/app-root-path-tests.ts
Shant Marouti fc595bd854 Add definitions for app-root-path and gulp-insert (#10118)
* add app-root-path type difinitions

* Add defenitions for gulp-insert
2016-07-19 16:23:27 -07:00

11 lines
295 B
TypeScript

/// <reference path="app-root-path.d.ts" />
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');