UNPKG

984 BTypeScriptView Raw
1import { Types } from '@graphql-codegen/plugin-helpers';
2import { DocumentNode, GraphQLSchema } from 'graphql';
3export declare function isObjectMap(obj: any): obj is Types.PluginConfig<any>;
4export declare function prioritize<T>(...values: T[]): T;
5export declare function pickFlag<TConfig, TKey extends keyof TConfig>(flag: TKey, config: TConfig): TConfig[TKey] | undefined;
6export declare function shouldValidateDuplicateDocuments(skipDocumentsValidationOption: Types.GenerateOptions['skipDocumentsValidation']): boolean;
7export declare function shouldValidateDocumentsAgainstSchema(skipDocumentsValidationOption: Types.GenerateOptions['skipDocumentsValidation']): boolean;
8export declare function getSkipDocumentsValidationOption(options: Types.GenerateOptions): Types.SkipDocumentsValidationOptions;
9export declare function hasFederationSpec(schemaOrAST: GraphQLSchema | DocumentNode): boolean;
10export declare function extractHashFromSchema(schema: GraphQLSchema): string | null;