import { type OriginExporter_Props, type ResourceRef, ExporterOrigin } from "@k8ts/instruments" import { doddlify, seq } from "doddle" import type { v1 } from "../../kinds" export class K8tsFile_Section_Scope { on: K8tsFile_Section["on"] get __entity__() { return this._section } constructor(private readonly _section: K8tsFile_Section) { this.on = this._section.on } } export interface K8tsFile_Section_Props extends OriginExporter_Props { namespace?: ResourceRef resources$(Section: K8tsFile_Section_Scope): Iterable } export class K8tsFile_Section extends ExporterOrigin { get kind() { return "[k8ts] File/Section" } get namespace() { return this.__parent__.cast(ExporterOrigin).namespace } @doddlify protected __exports__() { return seq( this._props.resources$.call( this, new K8tsFile_Section_Scope(this) ) as Iterable ).cache() } }