Prefer using nullable marker for fields

pull/66115/head
Matt Bierner 2019-01-03 15:54:54 -08:00
parent 6d680a040f
commit 0b2f1558e6
1 changed files with 5 additions and 5 deletions

View File

@ -462,12 +462,12 @@ export class Emitter<T> {
private static readonly _noop = function () { }; private static readonly _noop = function () { };
private readonly _options: EmitterOptions | undefined; private readonly _options?: EmitterOptions;
private readonly _leakageMon: LeakageMonitor | undefined; private readonly _leakageMon?: LeakageMonitor;
private _disposed: boolean = false; private _disposed: boolean = false;
private _event: Event<T> | undefined; private _event?: Event<T>;
private _deliveryQueue: [Listener<T>, T][] | undefined; private _deliveryQueue: [Listener<T>, T][];
protected _listeners: LinkedList<Listener<T>> | undefined; protected _listeners?: LinkedList<Listener<T>>;
constructor(options?: EmitterOptions) { constructor(options?: EmitterOptions) {
this._options = options; this._options = options;