deno.land / x / pothos@release-1713397530 / packages / core / refs / enum.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// @ts-nocheckimport { InputRef, inputShapeKey, OutputRef, outputShapeKey } from '../types/index.ts';import BaseTypeRef from './base.ts';export default class EnumRef<T, U = T> extends BaseTypeRef implements OutputRef, InputRef, PothosSchemaTypes.EnumRef<T, U> { override kind = "Enum" as const; $inferType!: T; $inferInput!: U; [outputShapeKey]!: T; [inputShapeKey]!: U; constructor(name: string) { super("Enum", name); }}
pothos

Version Info

Tagged at
a year ago