From 41c5619a6d4b93722b9a2cc9099f709635d28af3 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 25 Dec 2018 14:37:46 +0100 Subject: [PATCH] [git-config-path] Add types --- .../git-config-path/git-config-path-tests.ts | 4 ++++ types/git-config-path/index.d.ts | 8 +++++++ types/git-config-path/tsconfig.json | 23 +++++++++++++++++++ types/git-config-path/tslint.json | 1 + 4 files changed, 36 insertions(+) create mode 100644 types/git-config-path/git-config-path-tests.ts create mode 100644 types/git-config-path/index.d.ts create mode 100644 types/git-config-path/tsconfig.json create mode 100644 types/git-config-path/tslint.json 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" }