Skip to content

Commit

Permalink
TypeScript - Properly mark token as optional (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
favna authored and sindresorhus committed Jun 2, 2019
1 parent 929895f commit c353a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ import githubUsername = require('github-username');
})();
```
*/
declare function githubUsername(email: string, token: string): Promise<string>;
declare function githubUsername(email: string, token?: string): Promise<string>;

export = githubUsername;

0 comments on commit c353a93

Please sign in to comment.