mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
add yargs#usage typing (#46983)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46983 X-link: https://github.com/facebook/metro/pull/1370 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 fbshipit-source-id: 9928f08bad16a5e1a6bcfa7c2cf2bfa73668ff57
This commit is contained in:
parent
c86b5c1232
commit
a7023414fd
1
flow-typed/npm/yargs_v17.x.x.js
vendored
1
flow-typed/npm/yargs_v17.x.x.js
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user