refactor(EventEmitter): optional emits (#10058)
the Subject#next is optional
This commit is contained in:

committed by
Victor Berchet

parent
64fc4648b7
commit
190bcc89c1
@ -130,7 +130,7 @@ export class EventEmitter<T> extends Subject<T> {
|
||||
this.__isAsync = isAsync;
|
||||
}
|
||||
|
||||
emit(value: T) { super.next(value); }
|
||||
emit(value?: T) { super.next(value); }
|
||||
|
||||
/**
|
||||
* @deprecated - use .emit(value) instead
|
||||
|
Reference in New Issue
Block a user