mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add is-negated-glob (#22573)
* Add is-negated-glob * Use ImportEquals instead of namespace import
This commit is contained in:
parent
e3c87baad7
commit
c9f8a8f8be
14
types/is-negated-glob/index.d.ts
vendored
Normal file
14
types/is-negated-glob/index.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
// Type definitions for is-negated-glob 1.0
|
||||
// Project: https://github.com/jonschlinkert/is-negated-glob
|
||||
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function isNegatedGlob(pattern: string): isNegatedGlob.Result;
|
||||
declare namespace isNegatedGlob {
|
||||
interface Result {
|
||||
negated: boolean;
|
||||
original: string;
|
||||
pattern: string;
|
||||
}
|
||||
}
|
||||
export = isNegatedGlob;
|
||||
6
types/is-negated-glob/is-negated-glob-tests.ts
Normal file
6
types/is-negated-glob/is-negated-glob-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import isNegatedGlob = require('is-negated-glob');
|
||||
|
||||
const result = isNegatedGlob('!foo.*');
|
||||
const negated: boolean = result.negated;
|
||||
const original: string = result.original;
|
||||
const pattern: string = result.pattern;
|
||||
23
types/is-negated-glob/tsconfig.json
Normal file
23
types/is-negated-glob/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",
|
||||
"is-negated-glob-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/is-negated-glob/tslint.json
Normal file
1
types/is-negated-glob/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user