UNPKG

@dossierhq/graphql

Version:

A library for creating GraphQL servers with Dossier.

16 lines (15 loc) 813 B
import { GraphQLEnumType, type GraphQLInputType, type GraphQLInterfaceType, type GraphQLNamedType, type GraphQLOutputType } from 'graphql'; export declare class TypeRepository { #private; getTypes(): GraphQLNamedType[]; addType(type: GraphQLNamedType): void; getType(name: string): GraphQLNamedType; getOutputType(name: string): GraphQLOutputType; getEnumType(name: string): GraphQLEnumType; getInputType(name: string): GraphQLInputType; getInterface(name: string): GraphQLInterfaceType; getInterfaces(...names: string[]): GraphQLInterfaceType[]; getOrCreateEntityUnion(isAdmin: boolean, names: string[]): GraphQLOutputType; getOrCreateValueUnion(isAdmin: boolean, names: string[]): GraphQLOutputType; getValueInputType(names: string[]): GraphQLInputType | null; }