VM types
This commit is contained in:
parent
d0d767ce5e
commit
218ba1d283
|
@ -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
|
||||
}
|
||||
|
|
|
@ -20,3 +20,4 @@ export * from "./cli"
|
|||
export * from "./websocket"
|
||||
export * from "./permissions"
|
||||
export * from "./row"
|
||||
export * from "./vm"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export interface VM {
|
||||
cpuTime: bigint
|
||||
execute(code: string): string
|
||||
}
|
Loading…
Reference in New Issue