diff --git a/src/rpc/server.ts b/src/rpc/server.ts index d0d6b16..61f4d45 100644 --- a/src/rpc/server.ts +++ b/src/rpc/server.ts @@ -67,8 +67,10 @@ export class RPCServer { public getMethods(): string[] { const methods = []; - for (const module in this.methods) { - for (const method in this.methods.get(module)) { + for (const module of this.methods.keys()) { + for (const method of ( + this.methods.get(module) as Map + ).keys()) { methods.push(`${module}.${method}`); } }