From 411dd55259b5af6f2776c877b30ff0493d4497ce Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 8 Feb 2024 16:27:48 +0100 Subject: [PATCH] Update types --- packages/server/src/jsRunner/vm/index.ts | 2 +- packages/types/src/sdk/vm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }