From ba9a19429e8aafae473d7b4b56b8d435615492e8 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Fri, 9 Oct 2026 08:48:41 -0700 Subject: [PATCH] Deploy 0.335.0 to xplat Summary: Changelog: [Internal] Differential Revision: D124353974 --- .flowconfig | 2 +- flow-typed/environment/node.js | 6 +-- flow-typed/npm/commander_v12.x.x.js | 40 +++++++++---------- flow-typed/npm/react-test-renderer_v16.x.x.js | 2 +- package.json | 2 +- yarn.lock | 8 ++-- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.flowconfig b/.flowconfig index 175ae62e4e64..f8075b2b4bd1 100644 --- a/.flowconfig +++ b/.flowconfig @@ -96,4 +96,4 @@ untyped-import untyped-type-import [version] -^0.334.0 +^0.335.0 diff --git a/flow-typed/environment/node.js b/flow-typed/environment/node.js index 684b24660135..e5d38b76c363 100644 --- a/flow-typed/environment/node.js +++ b/flow-typed/environment/node.js @@ -5560,9 +5560,9 @@ type repl$DefineCommandOptions = (...args: Array) => void | { ... }; -declare class $SymbolReplModeMagic mixins Symbol {} -declare class $SymbolReplModeSloppy mixins Symbol {} -declare class $SymbolReplModeStrict mixins Symbol {} +declare opaque type $SymbolReplModeMagic: symbol; +declare opaque type $SymbolReplModeSloppy: symbol; +declare opaque type $SymbolReplModeStrict: symbol; declare module 'repl' { declare var REPL_MODE_MAGIC: $SymbolReplModeMagic; diff --git a/flow-typed/npm/commander_v12.x.x.js b/flow-typed/npm/commander_v12.x.x.js index e1fd06854d6d..fcb203944d21 100644 --- a/flow-typed/npm/commander_v12.x.x.js +++ b/flow-typed/npm/commander_v12.x.x.js @@ -14,7 +14,7 @@ // Flowgen v1.21.0 declare module 'commander' { - declare type LiteralUnion = + declare type LiteralUnion = LiteralType | {...BaseType, ...{[key: empty]: empty, ...}}; declare export class CommanderError extends Error { @@ -77,7 +77,7 @@ declare module 'commander' { /** * Set the default value, and optionally supply the description to be displayed in the help. */ - default(value: mixed, description?: string): this; + default(value: unknown, description?: string): this; /** * Set the custom handler for processing CLI command arguments into argument values. @@ -87,7 +87,7 @@ declare module 'commander' { /** * Only allow argument value to be one of choices. */ - choices(values: $ReadOnlyArray): this; + choices(values: ReadonlyArray): this; /** * Make argument required. @@ -111,7 +111,7 @@ declare module 'commander' { negate: boolean; defaultValue?: any; defaultValueDescription?: string; - presetArg?: mixed; + presetArg?: unknown; envVar?: string; parseArg?: (value: string, previous: T) => T; hidden: boolean; @@ -121,7 +121,7 @@ declare module 'commander' { /** * Set the default value, and optionally supply the description to be displayed in the help. */ - default(value: mixed, description?: string): this; + default(value: unknown, description?: string): this; /** * Preset to use when option used without option-argument, especially optional but also boolean and negated. @@ -131,7 +131,7 @@ declare module 'commander' { * new Option('--donate [amount]').preset('20').argParser(parseFloat); * ``` */ - preset(arg: mixed): this; + preset(arg: unknown): this; /** * Add option name(s) that conflict with this option. @@ -184,7 +184,7 @@ declare module 'commander' { /** * Only allow option value to be one of choices. */ - choices(values: $ReadOnlyArray): this; + choices(values: ReadonlyArray): this; /** * Return option name. @@ -344,9 +344,9 @@ declare module 'commander' { declare export class Command { args: string[]; processedArgs: any[]; - readonly commands: $ReadOnlyArray; - readonly options: $ReadOnlyArray