import { Input } from './input' ; import { Output } from './output' ; export class Connection { output : Output ; input : Input ; data : unknown = { } ; constructor ( output , input ) { this . output = output ; this . input = input ; this . data = { } ; this . input . addConnection ( this ) ; } remove ( ) { this . input . removeConnection ( this ) ; this . output . removeConnection ( this ) ; } }