Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 44e8ce6

Browse files
danielreardenIvanGoncharov
authored andcommitted
Fix RequestInfo typings
1 parent 194b842 commit 44e8ce6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ export interface RequestInfo {
153153
/**
154154
* The variable values used at runtime.
155155
*/
156-
variables: { readonly [name: string]: unknown };
156+
variables: { readonly [name: string]: unknown } | null;
157157

158158
/**
159159
* The (optional) operation name requested.
160160
*/
161-
operationName: string;
161+
operationName: string | null;
162162

163163
/**
164164
* The result of executing the operation.
165165
*/
166-
result: unknown;
166+
result: ExecutionResult;
167167

168168
/**
169169
* A value to pass as the context to the graphql() function.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export type RequestInfo = {|
171171
/**
172172
* The result of executing the operation.
173173
*/
174-
result: ExecutionResult | null,
174+
result: ExecutionResult,
175175

176176
/**
177177
* A value to pass as the context to the graphql() function.

0 commit comments

Comments
 (0)