Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / SandboxCode
Type Alias: SandboxCode
ts
type SandboxCode =
| {
filename?: string;
kind: "source";
source: string;
}
| {
kind: "file";
path: string;
}
| {
export: string;
kind: "handler";
module: string;
};Defined in: packages/core/dist/contracts/sandbox.d.ts:21
Description of the code to run in the sandbox. Either a JS source string, a path to a JS file, or a fully-qualified handler reference resolved by the sandbox implementation.