diff --git a/keyserver/flow-typed/npm/history_v4.x.x.js b/keyserver/flow-typed/npm/history_v4.x.x.js --- a/keyserver/flow-typed/npm/history_v4.x.x.js +++ b/keyserver/flow-typed/npm/history_v4.x.x.js @@ -19,9 +19,9 @@ location: HistoryLocation, action: Action, push: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), + ((location: Partial) => void), replace: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), + ((location: Partial) => void), go(n: number): void, goBack(): void, goForward(): void, @@ -32,7 +32,7 @@ | boolean | ((location: HistoryLocation, action: Action) => string | false | void) ): Unregister, - createHref(location: $Shape): string, + createHref(location: Partial): string, |}; declare export type BrowserHistory = History<>; @@ -92,16 +92,16 @@ // PathUtils declare function parsePath(path: string): Location; - declare function createPath(location: $Shape): string; + declare function createPath(location: Partial): string; // LocationUtils declare function locationsAreEqual( - a: $Shape, - b: $Shape + a: Partial, + b: Partial ): boolean; declare function createLocation( - path: string | $Shape, + path: string | Partial, state?: { ... }, key?: string, currentLocation?: Location diff --git a/keyserver/flow-typed/npm/react-redux_v7.x.x.js b/keyserver/flow-typed/npm/react-redux_v7.x.x.js --- a/keyserver/flow-typed/npm/react-redux_v7.x.x.js +++ b/keyserver/flow-typed/npm/react-redux_v7.x.x.js @@ -315,7 +315,7 @@ >( selectorFactory: SelectorFactory, connectAdvancedOptions: ?(ConnectAdvancedOptions & EFO), - ): (component: Com) => React$ComponentType & $Shape; + ): (component: Com) => React$ComponentType & Partial; declare export function batch(() => void): void diff --git a/lib/flow-typed/npm/react-redux_v7.x.x.js b/lib/flow-typed/npm/react-redux_v7.x.x.js --- a/lib/flow-typed/npm/react-redux_v7.x.x.js +++ b/lib/flow-typed/npm/react-redux_v7.x.x.js @@ -315,7 +315,7 @@ >( selectorFactory: SelectorFactory, connectAdvancedOptions: ?(ConnectAdvancedOptions & EFO), - ): (component: Com) => React$ComponentType & $Shape; + ): (component: Com) => React$ComponentType & Partial; declare export function batch(() => void): void diff --git a/lib/shared/identity-client-context.js b/lib/shared/identity-client-context.js --- a/lib/shared/identity-client-context.js +++ b/lib/shared/identity-client-context.js @@ -10,7 +10,7 @@ +accessToken: ?string, }; -export type PartialAuthMetadata = $Shape; +export type PartialAuthMetadata = Partial; // TODO: Replace this with mapped type after Flow upgrade export type FullAuthMetadata = $ObjMap< diff --git a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js --- a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js +++ b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js @@ -171,7 +171,7 @@ extrapolate?: ?ExtrapolateType, ) => number; - declare export type InterpolateColorConfig = $Shape<{ + declare export type InterpolateColorConfig = Partial<{ +gamma: number, +useCorrectedHSVInterpolation: boolean, }>; @@ -518,7 +518,7 @@ declare type ToValue = (val: mixed) => ValueImpl; declare type Event = = $Event>( defs: $ReadOnlyArray<{ - +nativeEvent: $Shape<$ObjMap>, + +nativeEvent: Partial<$ObjMap>, ... }>, ) => EventResult; @@ -526,12 +526,12 @@ declare type UseValue = (initialVal: number) => ValueImpl; declare type AnimatedGestureHandlerEventCallback> = ( - event: $Shape, + event: Partial, context: {| [name: string]: mixed |}, ) => mixed; declare type UseAnimatedGestureHandler = = $Event>( - callbacks: $Shape<{| + callbacks: Partial<{| +onStart: AnimatedGestureHandlerEventCallback, +onActive: AnimatedGestureHandlerEventCallback, +onEnd: AnimatedGestureHandlerEventCallback, @@ -561,7 +561,7 @@ dependencies?: $ReadOnlyArray, ) => T; - declare export type WithSpringConfig = $Shape<{| + declare export type WithSpringConfig = Partial<{| +stiffness: number, +damping: number, +mass: number, @@ -578,7 +578,7 @@ springConfig?: WithSpringConfig, ) => number; - declare type WithTimingConfig = $Shape<{ + declare type WithTimingConfig = Partial<{ +duration: number, +easing: EasingFn | EasingFnFactory, }>; diff --git a/native/flow-typed/npm/react-redux_v7.x.x.js b/native/flow-typed/npm/react-redux_v7.x.x.js --- a/native/flow-typed/npm/react-redux_v7.x.x.js +++ b/native/flow-typed/npm/react-redux_v7.x.x.js @@ -315,7 +315,7 @@ >( selectorFactory: SelectorFactory, connectAdvancedOptions: ?(ConnectAdvancedOptions & EFO), - ): (component: Com) => React$ComponentType & $Shape; + ): (component: Com) => React$ComponentType & Partial; declare export function batch(() => void): void diff --git a/web/flow-typed/npm/history_v4.x.x.js b/web/flow-typed/npm/history_v4.x.x.js --- a/web/flow-typed/npm/history_v4.x.x.js +++ b/web/flow-typed/npm/history_v4.x.x.js @@ -19,9 +19,9 @@ location: HistoryLocation, action: Action, push: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), + ((location: Partial) => void), replace: ((path: string, state?: { ... }) => void) & - ((location: $Shape) => void), + ((location: Partial) => void), go(n: number): void, goBack(): void, goForward(): void, @@ -32,7 +32,7 @@ | boolean | ((location: HistoryLocation, action: Action) => string | false | void) ): Unregister, - createHref(location: $Shape): string, + createHref(location: Partial): string, |}; declare export type BrowserHistory = History<>; @@ -92,16 +92,16 @@ // PathUtils declare function parsePath(path: string): Location; - declare function createPath(location: $Shape): string; + declare function createPath(location: Partial): string; // LocationUtils declare function locationsAreEqual( - a: $Shape, - b: $Shape + a: Partial, + b: Partial ): boolean; declare function createLocation( - path: string | $Shape, + path: string | Partial, state?: { ... }, key?: string, currentLocation?: Location diff --git a/web/flow-typed/npm/react-hot-loader_v4.6.x.js b/web/flow-typed/npm/react-hot-loader_v4.6.x.js --- a/web/flow-typed/npm/react-hot-loader_v4.6.x.js +++ b/web/flow-typed/npm/react-hot-loader_v4.6.x.js @@ -45,7 +45,7 @@ onComponentCreate: (type: any, displayName: string) => any, |} - declare export function setConfig(config: $Shape): void + declare export function setConfig(config: Partial): void } declare module "react-hot-loader/root" { diff --git a/web/flow-typed/npm/react-redux_v7.x.x.js b/web/flow-typed/npm/react-redux_v7.x.x.js --- a/web/flow-typed/npm/react-redux_v7.x.x.js +++ b/web/flow-typed/npm/react-redux_v7.x.x.js @@ -315,7 +315,7 @@ >( selectorFactory: SelectorFactory, connectAdvancedOptions: ?(ConnectAdvancedOptions & EFO), - ): (component: Com) => React$ComponentType & $Shape; + ): (component: Com) => React$ComponentType & Partial; declare export function batch(() => void): void