import { outputShapeKey, parentShapeKey, type SchemaTypes, type TypeParam, } from '../types/index.js'; import { BaseTypeRef } from './base.js'; 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; } }