diff --git a/types/git-config-path/git-config-path-tests.ts b/types/git-config-path/git-config-path-tests.ts new file mode 100644 index 0000000000..1a18058e4a --- /dev/null +++ b/types/git-config-path/git-config-path-tests.ts @@ -0,0 +1,4 @@ +import gitConfigPath = require('git-config-path'); + +gitConfigPath(); // $ExpectType string +gitConfigPath('global'); // $ExpectType string diff --git a/types/git-config-path/index.d.ts b/types/git-config-path/index.d.ts new file mode 100644 index 0000000000..425b6a49f5 --- /dev/null +++ b/types/git-config-path/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for git-config-path 2.0 +// Project: https://github.com/jonschlinkert/git-config-path +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = gitConfigPath; + +declare function gitConfigPath(global?: 'global'): string; diff --git a/types/git-config-path/tsconfig.json b/types/git-config-path/tsconfig.json new file mode 100644 index 0000000000..6584f73fe4 --- /dev/null +++ b/types/git-config-path/tsconfig.json @@ -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" + ] +} diff --git a/types/git-config-path/tslint.json b/types/git-config-path/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/git-config-path/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }