diff --git a/desktop/flow-typed/npm/electron_v22.0.0.js b/desktop/flow-typed/npm/electron_v22.0.0.js --- a/desktop/flow-typed/npm/electron_v22.0.0.js +++ b/desktop/flow-typed/npm/electron_v22.0.0.js @@ -35,11 +35,11 @@ name: string, on: >( event: T, - listener: $ElementType, + listener: AppEvents[T], ) => void, removeListener: >( event: T, - listener: $ElementType, + listener: AppEvents[T], ) => void, }; declare type AppEvents = { @@ -178,11 +178,11 @@ on>( event: T, - listener: $ElementType, + listener: BrowserWindowEvents[T], ): void; removeListener>( event: T, - listener: $ElementType, + listener: BrowserWindowEvents[T], ): void; } @@ -213,11 +213,11 @@ on>( event: T, - listener: $ElementType, + listener: AutoUpdaterEvents[T], ): void; removeListener>( event: T, - listener: $ElementType, + listener: AutoUpdaterEvents[T], ): void; } @@ -344,11 +344,11 @@ on>( event: T, - listener: $ElementType, + listener: PushNotificationsEvents[T], ): void; removeListener>( event: T, - listener: $ElementType, + listener: PushNotificationsEvents[T], ): void; } declare type PushNotificationsEvents = { @@ -391,11 +391,11 @@ on>( event: T, - listener: $ElementType, + listener: NotificationEvents[T], ): void; removeListener>( event: T, - listener: $ElementType, + listener: NotificationEvents[T], ): void; } declare type NotificationEvents = { @@ -420,7 +420,7 @@ getUserDefault>( key: string, type: Type, - ): $ElementType, + ): UserDefaultTypes[Type], }; declare export var dialog: Dialog; @@ -481,11 +481,11 @@ on>( event: T, - listener: $ElementType, + listener: WebContentsEvents[T], ): void; removeListener: >( event: T, - listener: $ElementType, + listener: WebContentsEvents[T], ) => void; inspectSharedWorker(): void; } diff --git a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js @@ -782,14 +782,8 @@ EventMap: EventMapBase = EventMapCore, > = (e: EventArg< EventName, - $ElementType< - {| ...EventMap, ...EventMapCore |}, - EventName, - >['canPreventDefault'], - $ElementType< - {| ...EventMap, ...EventMapCore |}, - EventName, - >['data'], + {| ...EventMap, ...EventMapCore |}[EventName]['canPreventDefault'], + {| ...EventMap, ...EventMapCore |}[EventName]['data'], >) => mixed; /** @@ -810,7 +804,7 @@ >( routeName: DestinationRouteName, params: EitherExactOrPartialWithMergeProperty< - $ElementType, + ParamList[DestinationRouteName], >, ) => void; @@ -823,14 +817,14 @@ | {| +key: string, +params?: EitherExactOrPartialWithMergeProperty< - $ElementType, + ParamList[DestinationRouteName], >, |} | {| +name: DestinationRouteName, +key?: string, +params?: EitherExactOrPartialWithMergeProperty< - $ElementType, + ParamList[DestinationRouteName], >, |}, ) => void; @@ -899,9 +893,9 @@ ParamList: ParamListBase, RouteName: $Keys = $Keys, > = $If< - $IsUndefined<$ElementType>, + $IsUndefined, empty, - $Partial<$NonMaybeType<$ElementType>>, + $Partial<$NonMaybeType>, >; declare export type NavigationProp< @@ -930,7 +924,7 @@ RouteName: $Keys = $Keys, > = {| ...LeafRoute, - +params: $ElementType, + +params: ParamList[RouteName], +path?: string, |}; @@ -972,9 +966,9 @@ RouteProp, NavProp, >, - +initialParams?: $Partial<$ElementType>, + +initialParams?: $Partial, +getId?: ({ - +params: $ElementType, + +params: ParamList[RouteName], }) => string | void, +navigationKey?: string, |}; diff --git a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js @@ -193,7 +193,7 @@ RouteName: $Keys = $Keys, > = | string - | {| +screen: RouteName, +params?: $ElementType |}; + | {| +screen: RouteName, +params?: ParamList[RouteName] |}; declare export var Link: React$ComponentType<{ +to: LinkTo<>,