import { MapPlan } from '@jamashita/genitore-plan'; import { Chrono } from '../Chrono'; export class MapChronoPlan implements MapPlan> { private readonly chrono: Chrono; public static of(chrono: Chrono): MapChronoPlan { return new MapChronoPlan(chrono); } protected constructor(chrono: Chrono) { this.chrono = chrono; } public onMap(value: Exclude): unknown { return this.chrono.accept(value); } }