import { Signal , ISignal } from '@phosphor/signaling' ; export function proxyFor < T1 , T2 , U > ( source , thisArg ) { const destinationSignal = new Signal < T2 , U > ( thisArg ) ; source . connect ( ( _ , arg ) => { destinationSignal . emit ( arg ) ; } ) ; return destinationSignal ; }