import { Service, type Service_Ref } from "./service" export interface Service_PortRef_Props { service: Service_Ref name: Port } export class Service_PortRef { constructor(readonly props: Service_PortRef_Props) {} get service() { return this.props.service } number() { return this.props.service.cast(Service).ports.get(this.props.name).frontend } }