import { IWrap } from '../wrap'; import { Node } from './base'; export class Slot { private privNode: IWrap; constructor(node: IWrap, private readonly privUpdate: (value: IWrap) => void) { this.privNode = node; } public get node(): IWrap { return this.privNode; } public set node(value: IWrap) { this.privNode = value; this.privUpdate(value); } }