supergraphql/graphql-static-binding

View on GitHub
src/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { GraphQLObjectType, GraphQLUnionType, GraphQLInputObjectType, GraphQLScalarType, GraphQLEnumType, GraphQLInterfaceType } from "graphql";

export interface Generator {
    Main: (queryType: GraphQLObjectType, mutationType?: GraphQLObjectType | null, subscriptionType?: GraphQLObjectType | null) => string,
    Header: (schema: string) => string,
    SchemaType?: (queryType: GraphQLObjectType, mutationType?: GraphQLObjectType | null, subscriptionType?: GraphQLObjectType | null) => string,
    RootType?: (type: GraphQLObjectType) => string,
    SubscriptionType?: (type: GraphQLObjectType) => string,
    GraphQLUnionType?: (type: GraphQLUnionType) => string,
    GraphQLInputObjectType?: (type: GraphQLInputObjectType) => string,
    GraphQLObjectType?: (type: GraphQLObjectType) => string,
    GraphQLScalarType?: (type: GraphQLScalarType) => string,
    GraphQLEnumType?: (type: GraphQLEnumType) => string,
    GraphQLInterfaceType?: (type: GraphQLInterfaceType) => string,
  }