Merge pull request #31337 from BendingBender/github-username

Add types for github-username
This commit is contained in:
Nathan Shively-Sanders
2018-12-17 10:25:58 -08:00
committed by GitHub
4 changed files with 36 additions and 0 deletions
@@ -0,0 +1,4 @@
import githubUsername = require('github-username');
// $ExpectType Promise<string>
githubUsername('sindresorhus@gmail.com', 'deadbeef');
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for github-username 4.1
// Project: https://github.com/sindresorhus/github-username#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = githubUsername;
declare function githubUsername(email: string, token: string): Promise<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",
"github-username-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }