Skip to content

Commit e10a06c

Browse files
alexanderchrleebyron
authored andcommitted
Update return types in utilities to match source (graphql#27)
1 parent 8627de8 commit e10a06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/docs/APIReference-Utilities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ AST during a recursive descent by calling `enter(node)` and `leave(node)`.
206206
### isValidJSValue
207207
208208
```js
209-
function isValidJSValue(value: any, type: GraphQLInputType): boolean
209+
function isValidJSValue(value: any, type: GraphQLInputType): string[]
210210
```
211211

212212
Given a JavaScript value and a GraphQL type, determine if the value will be
@@ -219,7 +219,7 @@ runtime values of query variables.
219219
function isValidLiteralValue(
220220
type: GraphQLInputType,
221221
valueAST: Value
222-
): boolean
222+
): string[]
223223
```
224224

225225
Utility for validators which determines if a value literal AST is valid given

0 commit comments

Comments
 (0)