diff --git a/packages/server/src/jsRunner/vm/index.ts b/packages/server/src/jsRunner/vm/index.ts index 865aca0454..fc2c841f6e 100644 --- a/packages/server/src/jsRunner/vm/index.ts +++ b/packages/server/src/jsRunner/vm/index.ts @@ -130,7 +130,7 @@ export class IsolatedVM implements VM { return this } - execute(code: string): string { + execute(code: string): any { if (this.isolateAccumulatedTimeout) { const cpuMs = Number(this.isolate.cpuTime) / 1e6 if (cpuMs > this.isolateAccumulatedTimeout) { diff --git a/packages/types/src/sdk/vm.ts b/packages/types/src/sdk/vm.ts index 3abec4d39d..43b7775d3b 100644 --- a/packages/types/src/sdk/vm.ts +++ b/packages/types/src/sdk/vm.ts @@ -1,3 +1,3 @@ export interface VM { - execute(code: string): string + execute(code: string): any }