diff --git a/keyserver/flow-typed/npm/mysql_v2.x.x.js b/keyserver/flow-typed/npm/mysql_v2.x.x.js --- a/keyserver/flow-typed/npm/mysql_v2.x.x.js +++ b/keyserver/flow-typed/npm/mysql_v2.x.x.js @@ -77,12 +77,12 @@ declare class Connection extends events$EventEmitter { threadId: number; - connect(callback?: (error: ?Error) => *): void; + connect(callback?: (error: ?Error) => any): void; release(): void; destroy(): void; - end(callback?: (error: ?Error) => *): void; + end(callback?: (error: ?Error) => any): void; query( sql: QueryOptions, @@ -99,7 +99,7 @@ database?: string, ... }, - callback: (error: ?Error) => * + callback: (error: ?Error) => any ): void; beginTransaction(options: QueryOptions, callback: QueryCallback): void; @@ -119,9 +119,9 @@ declare class Pool extends events$EventEmitter { getConnection( - callback: (error: ?Error, connection?: Connection) => * + callback: (error: ?Error, connection?: Connection) => any ): void; - end(callback?: (error: ?Error) => *): void; + end(callback?: (error: ?Error) => any): void; query( sql: QueryOptions, values?: Array, @@ -155,7 +155,7 @@ error: ?Error, results: QueryResults, fields?: Array - ) => *; + ) => any; declare class PoolCluster extends events$EventEmitter { add(config: PoolOptions | string): void; @@ -165,20 +165,20 @@ getConnection( pattern: string | RegExp, selector: PoolClusterSelector, - callback: (error: ?Error, connection?: Connection) => * + callback: (error: ?Error, connection?: Connection) => any ): void; getConnection( pattern: string | RegExp, - callback: (error: ?Error, connection?: Connection) => * + callback: (error: ?Error, connection?: Connection) => any ): void; getConnection( - callback: (error: ?Error, connection?: Connection) => * + callback: (error: ?Error, connection?: Connection) => any ): void; // Truth to be told, of returns not a Pool, but PoolNamespace instance but it is the same for the most part of(pattern: string | RegExp, selector?: PoolClusterSelector): Pool; - end(callback?: (error: ?Error) => *): void; + end(callback?: (error: ?Error) => any): void; } declare function escapeId(val: mixed, forbidQualified?: boolean): string; diff --git a/keyserver/flow-typed/npm/react-router-dom_v5.x.x.js b/keyserver/flow-typed/npm/react-router-dom_v5.x.x.js --- a/keyserver/flow-typed/npm/react-router-dom_v5.x.x.js +++ b/keyserver/flow-typed/npm/react-router-dom_v5.x.x.js @@ -142,7 +142,7 @@ |}> declare export var Route: React$ComponentType<{| - component?: React$ComponentType<*>, + component?: React$ComponentType, render?: (router: ContextRouter) => React$Node, children?: React$ComponentType | React$Node, path?: string | Array, diff --git a/keyserver/flow-typed/npm/react-router_v5.x.x.js b/keyserver/flow-typed/npm/react-router_v5.x.x.js --- a/keyserver/flow-typed/npm/react-router_v5.x.x.js +++ b/keyserver/flow-typed/npm/react-router_v5.x.x.js @@ -105,7 +105,7 @@ declare export class Route extends React.Component<{| - component?: React.ComponentType<*>, + component?: React.ComponentType, render?: (router: ContextRouter) => React$Node, children?: React.ComponentType | React$Node, path?: string | Array, diff --git a/keyserver/src/endpoints.js b/keyserver/src/endpoints.js --- a/keyserver/src/endpoints.js +++ b/keyserver/src/endpoints.js @@ -177,8 +177,8 @@ ); type EndpointData = { - responder: (viewer: Viewer, input: any) => Promise<*>, - inputValidator: TType<*>, + responder: (viewer: Viewer, input: any) => Promise, + inputValidator: TType, policies: $ReadOnlyArray, }; diff --git a/keyserver/src/responders/handlers.js b/keyserver/src/responders/handlers.js --- a/keyserver/src/responders/handlers.js +++ b/keyserver/src/responders/handlers.js @@ -29,7 +29,7 @@ } from '../utils/validation-utils.js'; type InnerJSONResponder = { - responder: (viewer: Viewer, input: any) => Promise<*>, + responder: (viewer: Viewer, input: any) => Promise, requiredPolicies: $ReadOnlyArray, }; diff --git a/keyserver/src/utils/validation-utils.js b/keyserver/src/utils/validation-utils.js --- a/keyserver/src/utils/validation-utils.js +++ b/keyserver/src/utils/validation-utils.js @@ -147,9 +147,9 @@ } function findFirstInputMatchingValidator( - wholeInputValidator: *, - inputValidatorToMatch: *, - input: *, + wholeInputValidator: any, + inputValidatorToMatch: any, + input: any, ): any { if (!wholeInputValidator || input === null || input === undefined) { return null; diff --git a/landing/flow-typed/npm/react-router-dom_v5.x.x.js b/landing/flow-typed/npm/react-router-dom_v5.x.x.js --- a/landing/flow-typed/npm/react-router-dom_v5.x.x.js +++ b/landing/flow-typed/npm/react-router-dom_v5.x.x.js @@ -142,7 +142,7 @@ |}> declare export var Route: React.ComponentType<{| - component?: React.ComponentType<*>, + component?: React.ComponentType, render?: (router: ContextRouter) => React$Node, children?: React.ComponentType | React$Node, path?: string | Array, diff --git a/landing/flow-typed/npm/react-router_v5.x.x.js b/landing/flow-typed/npm/react-router_v5.x.x.js --- a/landing/flow-typed/npm/react-router_v5.x.x.js +++ b/landing/flow-typed/npm/react-router_v5.x.x.js @@ -105,7 +105,7 @@ declare export class Route extends React.Component<{| - component?: React.ComponentType<*>, + component?: React.ComponentType, render?: (router: ContextRouter) => React$Node, children?: React.ComponentType | React$Node, path?: string | Array, diff --git a/lib/reducers/loading-reducer.js b/lib/reducers/loading-reducer.js --- a/lib/reducers/loading-reducer.js +++ b/lib/reducers/loading-reducer.js @@ -7,7 +7,7 @@ import type { BaseAction } from '../types/redux-types.js'; const fetchKeyRegistry: Set = new Set(); -const registerFetchKey = (actionTypes: ActionTypes<*, *, *>) => { +const registerFetchKey = (actionTypes: ActionTypes) => { fetchKeyRegistry.add(actionTypes.started); fetchKeyRegistry.add(actionTypes.success); fetchKeyRegistry.add(actionTypes.failed); diff --git a/lib/selectors/loading-selectors.js b/lib/selectors/loading-selectors.js --- a/lib/selectors/loading-selectors.js +++ b/lib/selectors/loading-selectors.js @@ -26,7 +26,7 @@ // This is the key used to store the Promise state in Redux function getTrackingKey( - actionTypes: ActionTypes<*, *, *>, + actionTypes: ActionTypes, overrideKey?: string, ) { if (overrideKey) { @@ -41,7 +41,7 @@ } const baseCreateLoadingStatusSelector = ( - actionTypes: ActionTypes<*, *, *>, + actionTypes: ActionTypes, overrideKey?: string, ): ((state: BaseAppState<>) => LoadingStatus) => { // This makes sure that reduceLoadingStatuses tracks this action @@ -55,7 +55,7 @@ }; const createLoadingStatusSelector: ( - actionTypes: ActionTypes<*, *, *>, + actionTypes: ActionTypes, overrideKey?: string, ) => (state: BaseAppState<>) => LoadingStatus = _memoize( baseCreateLoadingStatusSelector, diff --git a/lib/shared/messages/message-specs.js b/lib/shared/messages/message-specs.js --- a/lib/shared/messages/message-specs.js +++ b/lib/shared/messages/message-specs.js @@ -29,7 +29,7 @@ } from '../../types/message-types-enum.js'; export const messageSpecs: { - +[MessageType]: MessageSpec<*, *, *>, + +[MessageType]: MessageSpec, } = Object.freeze({ [messageTypes.TEXT]: textMessageSpec, [messageTypes.CREATE_THREAD]: createThreadMessageSpec, diff --git a/lib/shared/updates/update-specs.js b/lib/shared/updates/update-specs.js --- a/lib/shared/updates/update-specs.js +++ b/lib/shared/updates/update-specs.js @@ -13,7 +13,7 @@ import { updateTypes, type UpdateType } from '../../types/update-types-enum.js'; export const updateSpecs: { - +[UpdateType]: UpdateSpec<*, *, *>, + +[UpdateType]: UpdateSpec, } = Object.freeze({ [updateTypes.DELETE_ACCOUNT]: deleteAccountSpec, [updateTypes.UPDATE_THREAD]: updateThreadSpec, diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -1716,7 +1716,12 @@ }, }>; -export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string); +export type ActionPayload = ?( + | Object + | Array + | $ReadOnlyArray + | string +); export type DispatchSource = 'tunnelbroker' | 'tab-sync'; // Data added when dispatching action as a result of message received // from other peer. It is used to send processing confirmation. diff --git a/native/redux/persist.js b/native/redux/persist.js --- a/native/redux/persist.js +++ b/native/redux/persist.js @@ -1734,7 +1734,7 @@ // import all the navigation and screen stuff, but some of those screens want to // access the persistor to purge its state. let storedPersistor = null; -function setPersistor(persistor: *) { +function setPersistor(persistor: any) { storedPersistor = persistor; } function getPersistor(): Persistor { diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js --- a/native/redux/redux-setup.js +++ b/native/redux/redux-setup.js @@ -371,7 +371,7 @@ function fixUnreadActiveThread( state: AppState, - action: *, + action: any, ): FixUnreadActiveThreadResult { const navContext = getGlobalNavContext(); const activeThread = activeMessageListSelector(navContext); @@ -438,7 +438,7 @@ enhancers = composeFunc(middleware); } -const store: Store = createStore( +const store: Store = createStore( persistReducer(persistConfig, reducer), defaultState, enhancers, diff --git a/web/calendar/day.react.js b/web/calendar/day.react.js --- a/web/calendar/day.react.js +++ b/web/calendar/day.react.js @@ -171,7 +171,7 @@ } }; - onAddEntry = (event: SyntheticEvent<*>) => { + onAddEntry = (event: SyntheticEvent) => { event.preventDefault(); invariant( this.props.onScreenThreadInfos.length > 0, diff --git a/web/flow-typed/npm/classnames_v2.x.x.js b/web/flow-typed/npm/classnames_v2.x.x.js --- a/web/flow-typed/npm/classnames_v2.x.x.js +++ b/web/flow-typed/npm/classnames_v2.x.x.js @@ -3,7 +3,7 @@ type $npm$classnames$Classes = | string - | { [className: string]: * } + | { [className: string]: any } | false | void | null; diff --git a/web/flow-typed/npm/react-color_v2.x.x.js b/web/flow-typed/npm/react-color_v2.x.x.js --- a/web/flow-typed/npm/react-color_v2.x.x.js +++ b/web/flow-typed/npm/react-color_v2.x.x.js @@ -57,7 +57,7 @@ width?: string, colors?: Array, triangle?: "hide" | "top", - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type ChromePickerProps = {| @@ -72,13 +72,13 @@ colors?: Array, circleSize?: number, circleSpacing?: number, - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type CompactPickerProps = {| ...ColorPickerProps, colors?: Array, - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type GithubPickerProps = {| @@ -86,7 +86,7 @@ width?: string, colors?: Array, triangle?: "hide" | "top-left" | "top-right", - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type HuePickerProps = {| @@ -114,7 +114,7 @@ presetColors?: Array, width?: number, renderers?: Object, - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type SliderPickerProps = {| @@ -127,7 +127,7 @@ width?: number, height?: number, colors?: Array>, - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type TwitterPickerProps = {| @@ -135,7 +135,7 @@ width?: string, colors?: Array, triangle?: "hide" | "top-left" | "top-right", - onSwatchHover?: (color: Color, event: SyntheticMouseEvent<*>) => void + onSwatchHover?: (color: Color, event: SyntheticMouseEvent) => void |}; declare export type ColorWrapChangeHandler = ( diff --git a/web/flow-typed/npm/react-router-dom_v5.x.x.js b/web/flow-typed/npm/react-router-dom_v5.x.x.js --- a/web/flow-typed/npm/react-router-dom_v5.x.x.js +++ b/web/flow-typed/npm/react-router-dom_v5.x.x.js @@ -142,7 +142,7 @@ |}> declare export var Route: React.ComponentType<{| - component?: React.ComponentType<*>, + component?: React.ComponentType, render?: (router: ContextRouter) => React$Node, children?: React.ComponentType | React$Node, path?: string | Array, diff --git a/web/flow-typed/npm/react-router_v5.x.x.js b/web/flow-typed/npm/react-router_v5.x.x.js --- a/web/flow-typed/npm/react-router_v5.x.x.js +++ b/web/flow-typed/npm/react-router_v5.x.x.js @@ -105,7 +105,7 @@ declare export class Route extends React.Component<{| - component?: React.ComponentType<*>, + component?: React.ComponentType, render?: (router: ContextRouter) => React$Node, children?: React.ComponentType | React$Node, path?: string | Array,