UNPKG

716 BTypeScriptView Raw
1import { Operation } from "apollo-codegen-core/lib/compiler";
2import { GraphQLInputObjectType } from "graphql";
3import { TSType, LVal, Identifier, ObjectProperty } from "@babel/types";
4export declare const typedIdentifier: (name: string, type: TSType) => Identifier;
5export declare const constructorDeclaration: (name: string, parameters: LVal[], returnType: TSType, properties: ObjectProperty[]) => import("babel-types").VariableDeclaration;
6export declare const constructorDeclarationForGraphQLInputObjectType: (type: GraphQLInputObjectType) => import("babel-types").VariableDeclaration;
7export declare const constructorDeclarationForOperation: (operation: Operation) => import("babel-types").VariableDeclaration;