UNPKG

@graphql-codegen/plugin-helpers

Version:
7 lines (6 loc) 508 B
import { GraphQLList, GraphQLNamedType, GraphQLNonNull, GraphQLOutputType } from 'graphql'; import { Types } from './types.cjs'; export declare function mergeOutputs(content: Types.PluginOutput | Array<Types.PluginOutput>): string; export declare function isWrapperType(t: GraphQLOutputType): t is GraphQLNonNull<any> | GraphQLList<any>; export declare function getBaseType(type: GraphQLOutputType): GraphQLNamedType; export declare function removeNonNullWrapper(type: GraphQLOutputType): GraphQLOutputType;