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:
Родитель
69e10a89c7
Коммит
9022c59820
|
@ -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>,
|
||||
|
|
Загрузка…
Ссылка в новой задаче