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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @ts-nocheckimport { outputShapeKey, parentShapeKey, SchemaTypes, TypeParam } from '../types/index.ts';import BaseTypeRef from './base.ts';export default class ListRef<Types extends SchemaTypes, T, P = T> extends BaseTypeRef implements PothosSchemaTypes.ListRef<Types, T, P> { override kind = "List" as const; $inferType!: T; [outputShapeKey]!: T; [parentShapeKey]!: P; listType: TypeParam<Types>; nullable: boolean; constructor(listType: TypeParam<Types>, nullable: boolean) { super("List", `List<${String(listType)}>`); this.listType = listType; this.nullable = nullable; }}
pothos

Version Info

Tagged at
a year ago