mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[is-dotdir] Add types
This commit is contained in:
parent
42e3741a35
commit
cd05c3a6eb
8
types/is-dotdir/index.d.ts
vendored
Normal file
8
types/is-dotdir/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for is-dotdir 1.0
|
||||
// Project: https://github.com/jonschlinkert/is-dotdir
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = isDotdir;
|
||||
|
||||
declare function isDotdir(path: string): boolean;
|
||||
3
types/is-dotdir/is-dotdir-tests.ts
Normal file
3
types/is-dotdir/is-dotdir-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import isDotdir = require('is-dotdir');
|
||||
|
||||
isDotdir('a/b/c/.gitignore'); // $ExpectType boolean
|
||||
23
types/is-dotdir/tsconfig.json
Normal file
23
types/is-dotdir/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-dotdir-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/is-dotdir/tslint.json
Normal file
1
types/is-dotdir/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user