Skip to content

Commit

Permalink
Update Community CLI Flow types
Browse files Browse the repository at this point in the history
Summary:
Scope down type definitions to the subset of CLI we are currently explicitly referencing. Rename/bump to `19.x`.

Related to:
- facebook#45380
- react-native-community/cli#2584
- (others)

Changelog: [Internal]

Differential Revision: D70699083
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 6, 2025
1 parent 900b625 commit 0577204
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,4 @@ declare module '@react-native-community/cli-server-api' {
},
...
};

declare export const indexPageMiddleware: NextHandleFunction;
}
29 changes: 0 additions & 29 deletions flow-typed/npm/@react-native-community/cli-tools_v12.x.x.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
*/

declare module '@react-native-community/cli-types' {
declare export type CommandFunction<Args = Object> = (
declare type CommandFunction<Args = Object> = (
argv: Array<string>,
ctx: Config,
args: Args,
) => Promise<void> | void;

declare export type OptionValue = string | boolean | number;
declare type OptionValue = string | boolean | number;

declare export type CommandOption<T = (ctx: Config) => OptionValue> = {
declare type CommandOption<T = (ctx: Config) => OptionValue> = {
name: string,
description?: string,
parse?: (val: string) => any,
Expand Down

0 comments on commit 0577204

Please sign in to comment.