type-graphql
Version:
Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
11 lines (10 loc) • 314 B
TypeScript
import { type ClassType, type TypeResolver } from "../../typings/index.js";
export interface UnionMetadata {
getClassTypes: () => ClassType[];
name: string;
description?: string;
resolveType?: TypeResolver<any, any>;
}
export type UnionMetadataWithSymbol = {
symbol: symbol;
} & UnionMetadata;