UNPKG

@davidyaha/graphql-birdseye

Version:
9 lines (8 loc) 722 B
import { GraphQLOutputType, GraphQLList, GraphQLNonNull, GraphQLNamedType, GraphQLType, GraphQLObjectType } from "graphql/type/definition"; export declare type NestedType = Exclude<GraphQLOutputType, GraphQLList<any> | GraphQLNonNull<any>>; export declare function getNestedType(outputType: GraphQLOutputType): NestedType; export declare function getFieldLabel(type: GraphQLType): string; export declare function isBaseEntity(entity: GraphQLNamedType): boolean; export declare function isFilteredEntity(entity: any): boolean; export declare function isRelatedType(source: GraphQLObjectType, destination: GraphQLNamedType): string | false; export declare function setTimeoutAsync(...args: Array<any>): Promise<{}>;