UNPKG

@graphql-codegen/plugin-helpers

Version:

GraphQL Code Generator common utils and types

8 lines (7 loc) • 680 B
import { DocumentNode, GraphQLOutputType, GraphQLSchema } from 'graphql'; import { Types } from './types.js'; export declare function normalizeOutputParam(config: Types.ConfiguredOutput | Types.ConfiguredOutput[]): Types.ConfiguredOutput[]; export declare function normalizeInstanceOrArray<T>(type: T | T[] | null | undefined): T[]; export declare function normalizeConfig(config: Types.OutputConfig | Types.OutputConfig[] | null | undefined): Types.ConfiguredPlugin[]; export declare function hasNullableTypeRecursively(type: GraphQLOutputType): boolean; export declare function isUsingTypes(document: DocumentNode, externalFragments: string[], schema?: GraphQLSchema): boolean;