mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Added type definitions for is-valid-path.
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for is-valid-path 0.1
|
||||
// Project: https://github.com/jonschlinkert/is-valid-path
|
||||
// Definitions by: Zlatko Andonovski <https://github.com/Goldsmith42>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function isValidPath(path?: string | null): boolean;
|
||||
|
||||
export = isValidPath;
|
||||
@@ -0,0 +1,18 @@
|
||||
// Tests are from the NPM README (https://www.npmjs.com/package/is-valid-path).
|
||||
|
||||
import isValid = require('is-valid-path');
|
||||
|
||||
isValid('abc.js');
|
||||
isValid('abc/def/ghi.js');
|
||||
isValid('foo.js');
|
||||
|
||||
isValid();
|
||||
isValid(null);
|
||||
isValid('!foo.js');
|
||||
isValid('*.js');
|
||||
isValid('**/abc.js');
|
||||
isValid('abc/*.js');
|
||||
isValid('abc/(aaa|bbb).js');
|
||||
isValid('abc/[a-z].js');
|
||||
isValid('abc/{a,b}.js');
|
||||
isValid('abc/?.js');
|
||||
@@ -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",
|
||||
"is-valid-path-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user