Skip to content

Commit c353a93

Browse files
favnasindresorhus
authored andcommittedJun 2, 2019
TypeScript - Properly mark token as optional (#10)
1 parent 929895f commit c353a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ import githubUsername = require('github-username');
1515
})();
1616
```
1717
*/
18-
declare function githubUsername(email: string, token: string): Promise<string>;
18+
declare function githubUsername(email: string, token?: string): Promise<string>;
1919

2020
export = githubUsername;

0 commit comments

Comments
 (0)
Please sign in to comment.