import { outputShapeKey, parentShapeKey, type SchemaTypes, type TypeParam } from '../types'; import { BaseTypeRef } from './base'; export class ListRef extends BaseTypeRef implements PothosSchemaTypes.ListRef { override kind = 'List' as const; $inferType!: T; [outputShapeKey]!: T; [parentShapeKey]!: P; listType: TypeParam; nullable: boolean; constructor(listType: TypeParam, nullable: boolean) { super('List', `List<${String(listType)}>`); this.listType = listType; this.nullable = nullable; } }