From 422cfb70e5587e86adfcf8a91ca63a2e78cec3f1 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 11 Oct 2024 11:27:09 -0700 Subject: [PATCH] add yargs#usage typing (#1370) Summary: X-link: https://github.com/facebook/react-native/pull/46983 Pull Request resolved: 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 --- flow-typed/npm/yargs_v17.x.x.js | 1 + 1 file changed, 1 insertion(+) diff --git a/flow-typed/npm/yargs_v17.x.x.js b/flow-typed/npm/yargs_v17.x.x.js index ea049a3ba5..9f614e41f1 100644 --- a/flow-typed/npm/yargs_v17.x.x.js +++ b/flow-typed/npm/yargs_v17.x.x.js @@ -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;