Skip to content

Commit 9a6e786

Browse files
authored
Fix prototype of astFromValue (graphql#643)
There is a mismatch between what is stated in the docs and the typescript definition. From typescript definition: ``` export function astFromValue(value: any, type: GraphQLInputType): Maybe<ValueNode>; ```
1 parent ed02e38 commit 9a6e786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/graphql-js/APIReference-Utilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ corresponding GraphQLType from that schema.
189189
```js
190190
function astFromValue(
191191
value: any,
192-
type?: ?GraphQLType
192+
type: GraphQLInputType
193193
): ?Value
194194
```
195195
Produces a GraphQL Input Value AST given a JavaScript value.

0 commit comments

Comments
 (0)