Update types

This commit is contained in:
Adria Navarro 2024-02-08 16:27:48 +01:00
parent 5bc9eb884a
commit 411dd55259
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ export class IsolatedVM implements VM {
return this return this
} }
execute(code: string): string { execute(code: string): any {
if (this.isolateAccumulatedTimeout) { if (this.isolateAccumulatedTimeout) {
const cpuMs = Number(this.isolate.cpuTime) / 1e6 const cpuMs = Number(this.isolate.cpuTime) / 1e6
if (cpuMs > this.isolateAccumulatedTimeout) { if (cpuMs > this.isolateAccumulatedTimeout) {

View File

@ -1,3 +1,3 @@
export interface VM { export interface VM {
execute(code: string): string execute(code: string): any
} }