Add types for path-is-inside

This commit is contained in:
Alexander Marks
2018-03-29 00:24:50 -07:00
parent 1ad206c616
commit 72fcbb0d13
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for path-is-inside 1.0
// Project: https://github.com/domenic/path-is-inside#readme
// Definitions by: Alexander Marks <https://github.com/aomarks>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function pathIsInside(thePath: string,
potentialParent: string): boolean;
export = pathIsInside;
@@ -0,0 +1,3 @@
import pathIsInside = require('path-is-inside');
pathIsInside('path', 'parent'); // $ExpectType boolean
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"path-is-inside-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }