UNPKG

@graphql-tools/code-file-loader

Version:

A set of utils for faster development of GraphQL tools

24 lines (23 loc) 530 B
import { DocumentNode, IntrospectionQuery } from 'graphql'; /** * @internal */ export declare function pick<T>(obj: any, keys: string[]): T; /** * @internal */ export declare function isSchemaText(obj: any): obj is string; /** * @internal */ export declare function isWrappedSchemaJson(obj: any): obj is { data: IntrospectionQuery; }; /** * @internal */ export declare function isSchemaJson(obj: any): obj is IntrospectionQuery; /** * @internal */ export declare function isSchemaAst(obj: any): obj is DocumentNode;