Merge pull request #15216 from DefinitelyTyped/dir-resolve

Add 'dir-resolve'
This commit is contained in:
Yui
2017-03-17 10:41:38 -07:00
committed by GitHub
4 changed files with 33 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import resolve = require("dir-resolve");
resolve("module/package");
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for dir-resolve 1.0
// Project: https://github.com/mwinche/dir-resolve
// Definitions by: Andy Hanson <https://github.com/andy-ms>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function resolve(path: string): string;
export = resolve;
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"dir-resolve-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }