graphql-mocks
Version:
Tools for setting up graphql test resolvers
5 lines (4 loc) • 388 B
TypeScript
import { GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType, GraphQLType } from 'graphql';
declare type UnwrappedType = GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType;
export declare function unwrap(type: GraphQLType): UnwrappedType;
export {};