Merge pull request #31681 from BendingBender/git-user-email

[git-user-email] Add types
This commit is contained in:
Wesley Wigham
2018-12-25 13:03:50 -08:00
committed by GitHub
4 changed files with 35 additions and 0 deletions
@@ -0,0 +1,3 @@
import email = require('git-user-email');
email(); // $ExpectType string
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for git-user-email 0.2
// Project: https://github.com/jonschlinkert/git-user-email
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = gitUserEmail;
declare function gitUserEmail(): string;
+23
View 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-user-email-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }