diff --git a/src/vs/base/common/event.ts b/src/vs/base/common/event.ts index ae776ba3967..f6b794079cf 100644 --- a/src/vs/base/common/event.ts +++ b/src/vs/base/common/event.ts @@ -462,12 +462,12 @@ export class Emitter { private static readonly _noop = function () { }; - private readonly _options: EmitterOptions | undefined; - private readonly _leakageMon: LeakageMonitor | undefined; + private readonly _options?: EmitterOptions; + private readonly _leakageMon?: LeakageMonitor; private _disposed: boolean = false; - private _event: Event | undefined; - private _deliveryQueue: [Listener, T][] | undefined; - protected _listeners: LinkedList> | undefined; + private _event?: Event; + private _deliveryQueue: [Listener, T][]; + protected _listeners?: LinkedList>; constructor(options?: EmitterOptions) { this._options = options;