*make alias types optional
This commit is contained in:
parent
3b7be7e892
commit
08b4bbc893
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue