UNPKG

294 BTypeScriptView Raw
1import { GraphQLType } from 'graphql';
2import * as t from '@babel/types';
3import { CompilerOptions } from 'apollo-codegen-core/lib/compiler';
4export declare function createTypeFromGraphQLTypeFunction(compilerOptions: CompilerOptions): (graphQLType: GraphQLType, typeName?: string) => t.TSType;