update
This commit is contained in:
parent
3b17c31857
commit
5628b0403e
@ -57,7 +57,7 @@ export class MyServer extends EventEmitter {
|
||||
})
|
||||
}
|
||||
|
||||
setApi<T extends keyof IModel["api"]>(name: T, cb: (connection: Connection, args: IModel["api"][T]["res"]) => void) {
|
||||
setApi<T extends keyof IModel["api"]>(name: T, cb: (connection: Connection, args: IModel["api"][T]["req"]) => IModel["api"][T]["res"]) {
|
||||
this.apiMap.set(name, cb)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user