UNPKG

680 BTypeScriptView Raw
1import { GraphQLInputType, GraphQLOutputType, GraphQLType } from 'graphql';
2export interface ResolvedType {
3 raw: string;
4 name: string;
5 isRequired: boolean;
6 isArray: boolean;
7 isNullableArray: boolean;
8 dimensionOfArray: number;
9}
10export declare function isRequired(type: GraphQLOutputType | GraphQLInputType): boolean;
11export declare function isNullable(type: GraphQLOutputType | GraphQLInputType): boolean;
12export declare function isArray(type: GraphQLOutputType | GraphQLInputType): boolean;
13export declare function dimensionOfArray(type: GraphQLOutputType | GraphQLInputType): number;
14export declare function resolveType(type: GraphQLType): ResolvedType;