UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

12 lines (11 loc) 583 B
import { type InputRef, inputShapeKey, type OutputRef, outputShapeKey, type PothosEnumTypeConfig, type SchemaTypes } from '../types/index.js'; import { BaseTypeRef } from './base.js'; export declare class EnumRef<Types extends SchemaTypes, T, U = T> extends BaseTypeRef<Types, PothosEnumTypeConfig> implements OutputRef<T>, InputRef<U>, PothosSchemaTypes.EnumRef<Types, T, U> { kind: "Enum"; $inferType: T; $inferInput: U; [outputShapeKey]: T; [inputShapeKey]: U; constructor(name: string, config?: PothosEnumTypeConfig); } //# sourceMappingURL=enum.d.ts.map