UNPKG

@pothos/core

Version:

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

16 lines (11 loc) 368 B
import { inputShapeKey, type SchemaTypes } from '../types'; import { BaseTypeRef } from './base'; export class InputTypeRef<Types extends SchemaTypes, T> extends BaseTypeRef<Types> { override kind; $inferInput!: T; [inputShapeKey]!: T; constructor(kind: 'Enum' | 'InputObject' | 'Scalar', name: string) { super(kind, name); this.kind = kind; } }