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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// @ts-nocheckimport { FieldKind, outputFieldShapeKey } from '../types/index.ts';export default class FieldRef<T = unknown, Kind extends FieldKind = FieldKind> { kind: FieldKind; parentTypename: string; fieldName?: string; $inferType!: T; [outputFieldShapeKey]!: T; constructor(kind: Kind, parentTypename: string) { this.kind = kind; this.parentTypename = parentTypename; } toString() { if (this.fieldName) { return `${this.parentTypename}.${this.fieldName}`; } return this.parentTypename; }}
pothos

Version Info

Tagged at
a year ago