UNPKG

844 BTypeScriptView Raw
1import type { Maybe } from '../jsutils/Maybe';
2import type { ObjMap } from '../jsutils/ObjMap';
3import type { ValueNode } from '../language/ast';
4/**
5 * Produces a JavaScript value given a GraphQL Value AST.
6 *
7 * Unlike `valueFromAST()`, no type is provided. The resulting JavaScript value
8 * will reflect the provided GraphQL value AST.
9 *
10 * | GraphQL Value | JavaScript Value |
11 * | -------------------- | ---------------- |
12 * | Input Object | Object |
13 * | List | Array |
14 * | Boolean | Boolean |
15 * | String / Enum | String |
16 * | Int / Float | Number |
17 * | Null | null |
18 *
19 */
20export declare function valueFromASTUntyped(
21 valueNode: ValueNode,
22 variables?: Maybe<ObjMap<unknown>>,
23): unknown;