Register forwardEvent calls

This commit is contained in:
Daniel Imms
2020-04-26 06:21:16 -07:00
parent a6949d522e
commit 451d9aab96
3 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -64,6 +64,6 @@ export class EventEmitter<T, U = void> implements IEventEmitter<T, U> {
}
}
export function forwardEvent<T>(from: IEvent<T>, to: IEventEmitter<T>): void {
from(e => to.fire(e));
export function forwardEvent<T>(from: IEvent<T>, to: IEventEmitter<T>): IDisposable {
return from(e => to.fire(e));
}