mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[git-config-path] Add types
This commit is contained in:
parent
682ebb5fcd
commit
41c5619a6d
4
types/git-config-path/git-config-path-tests.ts
Normal file
4
types/git-config-path/git-config-path-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import gitConfigPath = require('git-config-path');
|
||||
|
||||
gitConfigPath(); // $ExpectType string
|
||||
gitConfigPath('global'); // $ExpectType string
|
||||
8
types/git-config-path/index.d.ts
vendored
Normal file
8
types/git-config-path/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for git-config-path 2.0
|
||||
// Project: https://github.com/jonschlinkert/git-config-path
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = gitConfigPath;
|
||||
|
||||
declare function gitConfigPath(global?: 'global'): string;
|
||||
23
types/git-config-path/tsconfig.json
Normal file
23
types/git-config-path/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",
|
||||
"git-config-path-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/git-config-path/tslint.json
Normal file
1
types/git-config-path/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user