1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00
This commit is contained in:
Adria Navarro 2024-02-07 18:07:05 +01:00
parent d0d767ce5e
commit 218ba1d283
3 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,4 @@
import { IdentityContext } from "@budibase/types"
import { IdentityContext, VM } from "@budibase/types"
import { Isolate, Context, Module } from "isolated-vm"
// keep this out of Budibase types, don't want to expose context info
@ -15,4 +15,5 @@ export type ContextMap = {
jsContext: Context
helpersModule: Module
}
vm?: VM
}

View file

@ -20,3 +20,4 @@ export * from "./cli"
export * from "./websocket"
export * from "./permissions"
export * from "./row"
export * from "./vm"

View file

@ -0,0 +1,4 @@
export interface VM {
cpuTime: bigint
execute(code: string): string
}