Skip to content

Commit

Permalink
Replace final $Call type in relay
Browse files Browse the repository at this point in the history
Reviewed By: gkz

Differential Revision: D62277959

fbshipit-source-id: a9a65cccbec35d5cc55bc1eb89350ae992d95c08
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Sep 6, 2024
1 parent 2f304f3 commit 1e8673c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react-relay/relay-hooks/loadQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ type QueryType<T> =
variables: V,
response: D,
rawResponse?: $NonMaybeType<RR>,
} // $FlowFixMe[deprecated-type]
: $Call<<T>(PreloadableConcreteRequest<T>) => T, T>;
}
: [+t: T] extends [+t: PreloadableConcreteRequest<infer V>]
? V
: empty;

declare function loadQuery<
T,
Expand Down

0 comments on commit 1e8673c

Please sign in to comment.