Skip to content

Commit

Permalink
Minor TypeScript definition tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 21, 2019
1 parent a341542 commit 580405f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ hasFlag('rainbow');
//=> false
```
*/
declare function hasFlag(flag: string, argv?: string[]): boolean;
declare function hasFlag(flag: string, argv?: readonly string[]): boolean;

export = hasFlag;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"tsd": "^0.7.3",
"xo": "^0.24.0"
}
}

0 comments on commit 580405f

Please sign in to comment.