From b2a8d008c2f259bfb2e5d2f6e7f9be82f7a147e2 Mon Sep 17 00:00:00 2001 From: etienne Date: Thu, 1 Aug 2024 15:07:15 +0000 Subject: [PATCH] fix: ts complaint --- src/world/WorldApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/WorldApi.ts b/src/world/WorldApi.ts index 914d127..386283a 100644 --- a/src/world/WorldApi.ts +++ b/src/world/WorldApi.ts @@ -22,7 +22,7 @@ export class WorldApi { // call(api: WorldApiName, args: any[]): T | Promise async call(apiName: WorldApiName, args: any) { - return await WorldCompute[apiName](...args) + return await WorldCompute[apiName](args[0]) } }