From 08b4bbc8935fed2de6f6bc40df789b05d9bab3ae Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 25 Feb 2023 22:49:34 -0500 Subject: [PATCH] *make alias types optional --- src/socket.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/socket.ts b/src/socket.ts index 839f698..46356e6 100644 --- a/src/socket.ts +++ b/src/socket.ts @@ -32,10 +32,10 @@ export default class Socket extends Duplex { public remotePublicKey: Uint8Array; private _emulateWebsocket: boolean; - declare addEventListener: typeof this.addListener; - declare removeEventListener: typeof this.removeListener; - declare send: typeof this.write; - declare close: typeof this.end; + declare addEventListener?: typeof this.addListener; + declare removeEventListener?: typeof this.removeListener; + declare send?: typeof this.write; + declare close?: typeof this.end; constructor({ allowHalfOpen = false,