From 5628b0403e8827f0564292c33afad60281efb76f Mon Sep 17 00:00:00 2001 From: sli97 <775303361@qq.com> Date: Thu, 15 Dec 2022 16:19:00 +0800 Subject: [PATCH] update --- apps/server/src/Core/MyServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/Core/MyServer.ts b/apps/server/src/Core/MyServer.ts index 45b3fd2..0f77981 100644 --- a/apps/server/src/Core/MyServer.ts +++ b/apps/server/src/Core/MyServer.ts @@ -57,7 +57,7 @@ export class MyServer extends EventEmitter { }) } - setApi(name: T, cb: (connection: Connection, args: IModel["api"][T]["res"]) => void) { + setApi(name: T, cb: (connection: Connection, args: IModel["api"][T]["req"]) => IModel["api"][T]["res"]) { this.apiMap.set(name, cb) } }