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

committed by
Victor Berchet

parent
64fc4648b7
commit
190bcc89c1
2
tools/public_api_guard/core/index.d.ts
vendored
2
tools/public_api_guard/core/index.d.ts
vendored
@ -715,7 +715,7 @@ export declare function enableProdMode(): void;
|
||||
export declare class EventEmitter<T> extends Subject<T> {
|
||||
__isAsync: boolean;
|
||||
constructor(isAsync?: boolean);
|
||||
emit(value: T): void;
|
||||
emit(value?: T): void;
|
||||
/** @deprecated */ next(value: any): void;
|
||||
subscribe(generatorOrNext?: any, error?: any, complete?: any): any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user