Skip to content

Commit

Permalink
add yargs#usage typing
Browse files Browse the repository at this point in the history
Summary:
Add support for `.usage` overload: https://github.com/yargs/yargs/blob/main/docs/api.md#usagemessagecommand-desc-builder-handler

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D64241927
  • Loading branch information
blakef authored and facebook-github-bot committed Oct 11, 2024
1 parent a36e992 commit 7c708df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow-typed/npm/yargs_v17.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ declare module "yargs" {
updateStrings(obj: { [key: string]: string, ... }): this;

usage(message: string, opts?: { [key: string]: Options, ... }): this;
usage(message: string, desc?: string, builder: CommonModuleObject["builder"], handler: CommonModuleObject["handler"]): this;

version(): this;
version(version: string | false): this;
Expand Down

0 comments on commit 7c708df

Please sign in to comment.