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

Commit b3c893a

Browse files
authored
let type of document to be optional on RequestInfo
`document` could be undefined if error be thrown when parsing AST.
1 parent 81fe7a4 commit b3c893a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export type RequestInfo = {
101101
/**
102102
* The parsed GraphQL document.
103103
*/
104-
document: DocumentNode,
104+
document: ?DocumentNode,
105105

106106
/**
107107
* The variable values used at runtime.

0 commit comments

Comments
 (0)