Make all emitters readonly

This commit is contained in:
Daniel Imms
2022-10-01 08:02:32 -07:00
parent cf9949840b
commit 1a22c44f2b
22 changed files with 67 additions and 67 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export class WriteBuffer {
private _syncCalls = 0;
private _didUserInput = false;
private _onWriteParsed = new EventEmitter<void>();
private readonly _onWriteParsed = new EventEmitter<void>();
public readonly onWriteParsed = this._onWriteParsed.event;
constructor(private _action: (data: string | Uint8Array, promiseResult?: boolean) => void | Promise<boolean>) { }