import { ParserField } from "./ParserTree"; import { OperationType } from "./Spec"; import { BooleanValueNode, EnumValueNode, FloatValueNode, IntValueNode, ListValueNode, NullValueNode, ObjectFieldNode, ObjectValueNode, StringValueNode, VariableNode } from 'graphql'; type ObjectFieldNodeWithoutLoc = Omit & { name: string; value: ValueNodeWithoutLoc; }; export type ValueNodeWithoutLoc = (Omit & { value: string; }) | Omit | Omit | Omit | Omit | (Omit & { value: null; }) | Omit | (Omit & { values: ValueNodeWithoutLoc[]; }) | (Omit & { fields: ObjectFieldNodeWithoutLoc[]; }); export type GqlParserTree = { name?: string; node: ParserField; children?: GqlParserTree[]; arguments?: GqlParserTree[]; directives?: GqlParserTree[]; fragment?: boolean; fragmentSpread?: boolean; inlineFragment?: boolean; value?: ValueNodeWithoutLoc; operation?: OperationType; variableDefinitions?: VariableDefinitionWithoutLoc[]; }; export type VariableDefinitionWithoutLoc = { name: string; type: string; }; export {};