@cran/lib.gql.core
Version:
GQL Core Functionality
9 lines (8 loc) • 597 B
TypeScript
import { type ObjectValueNode, type ValueNode } from "graphql/language/ast";
export declare function parseError(type: string, ast: unknown, reason?: string): never;
export type Primitive = boolean | number | string | null | undefined;
export type Derivative = Array<Derivative> | Primitive | {
[key: string]: Derivative;
};
export declare function parseObject(type: string, ast: ObjectValueNode, variables?: Record<string, unknown> | null): Record<string, Derivative>;
export declare function parseLiteral(type: string, ast: ValueNode, variables?: Record<string, unknown> | null): Derivative;