Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ untyped-import
untyped-type-import

[version]
^0.334.0
^0.335.0
6 changes: 3 additions & 3 deletions flow-typed/environment/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5560,9 +5560,9 @@ type repl$DefineCommandOptions = (...args: Array<any>) => 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;
Expand Down
40 changes: 20 additions & 20 deletions flow-typed/npm/commander_v12.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Flowgen v1.21.0

declare module 'commander' {
declare type LiteralUnion<LiteralType, BaseType: string | number> =
declare type LiteralUnion<LiteralType, BaseType extends string | number> =
LiteralType | {...BaseType, ...{[key: empty]: empty, ...}};

declare export class CommanderError extends Error {
Expand Down Expand Up @@ -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.
Expand All @@ -87,7 +87,7 @@ declare module 'commander' {
/**
* Only allow argument value to be one of choices.
*/
choices(values: $ReadOnlyArray<string>): this;
choices(values: ReadonlyArray<string>): this;

/**
* Make argument required.
Expand All @@ -111,7 +111,7 @@ declare module 'commander' {
negate: boolean;
defaultValue?: any;
defaultValueDescription?: string;
presetArg?: mixed;
presetArg?: unknown;
envVar?: string;
parseArg?: <T>(value: string, previous: T) => T;
hidden: boolean;
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -184,7 +184,7 @@ declare module 'commander' {
/**
* Only allow option value to be one of choices.
*/
choices(values: $ReadOnlyArray<string>): this;
choices(values: ReadonlyArray<string>): this;

/**
* Return option name.
Expand Down Expand Up @@ -344,9 +344,9 @@ declare module 'commander' {
declare export class Command {
args: string[];
processedArgs: any[];
readonly commands: $ReadOnlyArray<Command>;
readonly options: $ReadOnlyArray<Option>;
readonly registeredArguments: $ReadOnlyArray<Argument>;
readonly commands: ReadonlyArray<Command>;
readonly options: ReadonlyArray<Option>;
readonly registeredArguments: ReadonlyArray<Argument>;
parent: Command | null;
constructor(name?: string): this;

Expand Down Expand Up @@ -442,7 +442,7 @@ declare module 'commander' {
fn: (value: string, previous: T) => T,
defaultValue?: T,
): this;
argument(name: string, description?: string, defaultValue?: mixed): this;
argument(name: string, description?: string, defaultValue?: unknown): this;

/**
* Define argument syntax for command, adding a prepared argument.
Expand Down Expand Up @@ -666,8 +666,8 @@ declare module 'commander' {
* or store separately (specify false). In both cases the option values can be accessed using .opts().
* @returns `this` command for chaining
*/
storeOptionsAsProperties<T: OptionValues>(): this & T;
storeOptionsAsProperties<T: OptionValues>(
storeOptionsAsProperties<T extends OptionValues>(): this & T;
storeOptionsAsProperties<T extends OptionValues>(
storeAsProperties: true,
): this & T;
storeOptionsAsProperties(storeAsProperties?: boolean): this;
Expand All @@ -680,14 +680,14 @@ declare module 'commander' {
/**
* Store option value.
*/
setOptionValue(key: string, value: mixed): this;
setOptionValue(key: string, value: unknown): this;

/**
* Store option value and where the value came from.
*/
setOptionValueWithSource(
key: string,
value: mixed,
value: unknown,
source: OptionValueSource,
): this;

Expand Down Expand Up @@ -755,7 +755,7 @@ declare module 'commander' {
* ```
* @returns `this` command for chaining
*/
parse(argv?: $ReadOnlyArray<string>, options?: ParseOptions): this;
parse(argv?: ReadonlyArray<string>, options?: ParseOptions): this;

/**
* Parse `argv`, setting options and invoking commands when defined.
Expand All @@ -772,7 +772,7 @@ declare module 'commander' {
* @returns Promise
*/
parseAsync(
argv?: $ReadOnlyArray<string>,
argv?: ReadonlyArray<string>,
options?: ParseOptions,
): Promise<this>;

Expand All @@ -791,12 +791,12 @@ declare module 'commander' {
/**
* Return an object containing local option values as key-value pairs
*/
opts<T: OptionValues>(): T;
opts<T extends OptionValues>(): T;

/**
* Return an object containing merged local and global option values as key-value pairs.
*/
optsWithGlobals<T: OptionValues>(): T;
optsWithGlobals<T extends OptionValues>(): T;

/**
* Set the description.
Expand Down Expand Up @@ -847,7 +847,7 @@ declare module 'commander' {
* Only the first alias is shown in the auto-generated help.
* @returns `this` command for chaining
*/
aliases(aliases: $ReadOnlyArray<string>): this;
aliases(aliases: ReadonlyArray<string>): this;

/**
* Get aliases for the command.
Expand Down
2 changes: 1 addition & 1 deletion flow-typed/npm/react-test-renderer_v16.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ declare module 'react-test-renderer/shallow' {
declare export default class ShallowRenderer {
static createRenderer(): ShallowRenderer;
getMountedInstance(): ReactTestInstance;
getRenderOutput<E: React.MixedElement>(): E;
getRenderOutput<E extends React.MixedElement>(): E;
getRenderOutput(): React.MixedElement;
render(element: React.MixedElement, context?: any): void;
unmount(): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"eslint-plugin-relay": "^1.8.3",
"fb-dotslash": "0.5.8",
"flow-api-translator": "0.333.0",
"flow-bin": "^0.334.0",
"flow-bin": "^0.335.0",
"flow-eslint": "0.333.0",
"flow-parser": "0.333.0",
"flow-transform": "0.333.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4834,10 +4834,10 @@ flow-api-translator@0.333.0:
flow-transform "0.333.0"
typescript "5.3.2"

flow-bin@^0.334.0:
version "0.334.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.334.0.tgz#75dc2fd59ec3135aa7d544d7c52bae35ed2831aa"
integrity sha512-yxo8AdJwRroEivEIZFzApPCyVsauhJy3T+nlbjbzyhO+9tzuGZIbt7hbHtAi1NCgQ9FkzFU1NNXF6ODayU+vfA==
flow-bin@^0.335.0:
version "0.335.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.335.0.tgz#dd0d0d19b82c77d1d261d774e96bc624dd4143bc"
integrity sha512-a5Su683/8G03Cuj0nI9BMZxgg5M3VJtOA8R3/ADw7KcCXN2OdP72jC5ZtlpzWEwZjV+l/L+Up/Nw+CVYeghWxg==

flow-enums-runtime@^0.0.6:
version "0.0.6"
Expand Down
Loading