From 90b61fcbdf6cb6db35be8cdc75c61e585979403b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 24 Aug 2024 21:18:42 +0800 Subject: [PATCH] feat: revise ftp-srv.d.ts support connect --- ftp-srv.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ftp-srv.d.ts b/ftp-srv.d.ts index 2bc5556..60b9c2e 100644 --- a/ftp-srv.d.ts +++ b/ftp-srv.d.ts @@ -166,9 +166,14 @@ export class FtpServer extends EventEmitter { ) => void ): this; + on( + event: "connect", + listener: (data: { connection: FtpConnection; id: string; newConnectionCount: number }) => void + ): this; + on( event: "disconnect", - listener: (data: { connection: FtpConnection; id: string }) => void + listener: (data: { connection: FtpConnection; id: string; newConnectionCount: number }) => void ): this; on(