mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-04 16:02:50 +00:00
Add types for path-is-inside
This commit is contained in:
parent
1ad206c616
commit
72fcbb0d13
8
types/path-is-inside/index.d.ts
vendored
Normal file
8
types/path-is-inside/index.d.ts
vendored
Normal 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;
|
||||
3
types/path-is-inside/path-is-inside-tests.ts
Normal file
3
types/path-is-inside/path-is-inside-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import pathIsInside = require('path-is-inside');
|
||||
|
||||
pathIsInside('path', 'parent'); // $ExpectType boolean
|
||||
23
types/path-is-inside/tsconfig.json
Normal file
23
types/path-is-inside/tsconfig.json
Normal 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
types/path-is-inside/tslint.json
Normal file
1
types/path-is-inside/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user