mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #31337 from BendingBender/github-username
Add types for github-username
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import githubUsername = require('github-username');
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
githubUsername('sindresorhus@gmail.com', 'deadbeef');
|
||||
Vendored
+8
@@ -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>;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user