Update Yargs flow lib def to allow .fail(false) (#38273)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38273

Update Flow types for Yargs `.fail()` to match [Yargs docs](https://github.com/yargs/yargs/blob/v17.6.2/docs/api.md#failfn--boolean).

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D47337206

fbshipit-source-id: 693bf8ba81a20e1860d6b271182e3c839ff6028b
This commit is contained in:
Rob Hogan 2023-07-10 13:09:01 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 69e10a89c7
Коммит 9022c59820
1 изменённых файлов: 1 добавлений и 1 удалений

2
flow-typed/npm/yargs_v17.x.x.js поставляемый
Просмотреть файл

@ -191,7 +191,7 @@ declare module "yargs" {
exitProcess(enable: boolean): this;
fail(fn: (failureMessage: string, err: Error, yargs: Yargs) => mixed): this;
fail(fn: false | (failureMessage: string, err: Error, yargs: Yargs) => mixed): this;
getCompletion(
args: Array<string>,