stub.d.ts 867 B

123456789
  1. import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLNamedType, TypeNode, GraphQLType, GraphQLOutputType, GraphQLInputType } from 'graphql';
  2. export declare function createNamedStub(name: string, type: 'object'): GraphQLObjectType;
  3. export declare function createNamedStub(name: string, type: 'interface'): GraphQLInterfaceType;
  4. export declare function createNamedStub(name: string, type: 'input'): GraphQLInputObjectType;
  5. export declare function createStub(node: TypeNode, type: 'output'): GraphQLOutputType;
  6. export declare function createStub(node: TypeNode, type: 'input'): GraphQLInputType;
  7. export declare function createStub(node: TypeNode, type: 'output' | 'input'): GraphQLType;
  8. export declare function isNamedStub(type: GraphQLNamedType): boolean;
  9. export declare function getBuiltInForStub(type: GraphQLNamedType): GraphQLNamedType;