UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

12 lines (11 loc) 629 B
import { type DescriptionOptions, type ImplementsClassOptions, type ResolveTypeOptions } from "./types.js"; export type InterfaceTypeOptions = DescriptionOptions & ResolveTypeOptions & ImplementsClassOptions & { /** * Set to false to prevent emitting in schema all object types * that implements this interface type. */ autoRegisterImplementations?: boolean; }; export declare function InterfaceType(): ClassDecorator; export declare function InterfaceType(options: InterfaceTypeOptions): ClassDecorator; export declare function InterfaceType(name: string, options?: InterfaceTypeOptions): ClassDecorator;