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) } }