fix(callback/js): prevent args from being wrapped in an array when resolving the promise (#744)

This commit is contained in:
Malox
2025-04-15 06:12:51 +02:00
committed by GitHub
parent 8d1677f397
commit b4e3bcdad7
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
delete pendingCallbacks[key];
resolve(args);
resolve(...args);
});
const eventTimers: Record<string, number> = {};

View File

@@ -10,7 +10,7 @@ onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
delete pendingCallbacks[key];
resolve(args);
resolve(...args);
});
export function triggerClientCallback<T = unknown>(