*make alias types optional

This commit is contained in:
Derrick Hammer 2023-02-25 22:49:34 -05:00
parent 3b7be7e892
commit 08b4bbc893
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -32,10 +32,10 @@ export default class Socket extends Duplex {
public remotePublicKey: Uint8Array; public remotePublicKey: Uint8Array;
private _emulateWebsocket: boolean; private _emulateWebsocket: boolean;
declare addEventListener: typeof this.addListener; declare addEventListener?: typeof this.addListener;
declare removeEventListener: typeof this.removeListener; declare removeEventListener?: typeof this.removeListener;
declare send: typeof this.write; declare send?: typeof this.write;
declare close: typeof this.end; declare close?: typeof this.end;
constructor({ constructor({
allowHalfOpen = false, allowHalfOpen = false,