Skip to content

Commit dfad618

Browse files
gkzfacebook-github-bot
authored andcommitted
Fix types in RelayMockPayloadGenerator.js
Reviewed By: SamChou19815, panagosg7 Differential Revision: D51873710 fbshipit-source-id: ab10cbdeb48117f633ecc02cbd734ae2887758c1
1 parent 24ef22b commit dfad618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/relay-test-utils/RelayMockPayloadGenerator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class RelayMockPayloadGenerator {
209209
generate(
210210
selections: $ReadOnlyArray<NormalizationSelection>,
211211
operationType: string,
212-
): GraphQLResponse {
212+
): Array<GraphQLSingularResponse> {
213213
const defaultValues = this._getDefaultValuesForObject(
214214
operationType,
215215
null,
@@ -922,7 +922,7 @@ function generateData(
922922
mockResolvers: MockResolvers | null,
923923
selectionMetadata: SelectionMetadata | null,
924924
options: ?{mockClientData?: boolean, generateDeferredPayload?: boolean},
925-
): GraphQLResponse {
925+
): Array<GraphQLSingularResponse> {
926926
const mockGenerator = new RelayMockPayloadGenerator({
927927
variables,
928928
mockResolvers,

0 commit comments

Comments
 (0)