UNPKG

831 BTypeScriptView Raw
1import { Types } from './types';
2import { DocumentNode, GraphQLSchema, GraphQLOutputType } from 'graphql';
3export declare function isOutputConfigArray(type: any): type is Types.OutputConfig[];
4export declare function isConfiguredOutput(type: any): type is Types.ConfiguredOutput;
5export declare function normalizeOutputParam(config: Types.OutputConfig | Types.ConfiguredPlugin[] | Types.ConfiguredOutput): Types.ConfiguredOutput;
6export declare function normalizeInstanceOrArray<T>(type: T | T[]): T[];
7export declare function normalizeConfig(config: Types.OutputConfig | Types.OutputConfig[]): Types.ConfiguredPlugin[];
8export declare function hasNullableTypeRecursively(type: GraphQLOutputType): boolean;
9export declare function isUsingTypes(document: DocumentNode, externalFragments: string[], schema?: GraphQLSchema): boolean;