Update types
This commit is contained in:
parent
5bc9eb884a
commit
411dd55259
|
@ -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) {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
export interface VM {
|
export interface VM {
|
||||||
execute(code: string): string
|
execute(code: string): any
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue