Skip to content

SandboxExecOption

type SandboxExecOption = {
callLog?: (
| CallLogEntry
| null)[];
data: Record<string, unknown>;
logger?: Logger;
resumption?: SandboxResumption;
script: string;
};

Defined in: instance/instance.ts:57

Input to Sandbox.eval: the script to run, the initial data global, and optionally a prior callLog and resumption to replay and resume an interrupted run.

optional callLog?: (
| CallLogEntry
| null)[];

Defined in: instance/instance.ts:60


data: Record<string, unknown>;

Defined in: instance/instance.ts:59


optional logger?: Logger;

Defined in: instance/instance.ts:62


optional resumption?: SandboxResumption;

Defined in: instance/instance.ts:61


script: string;

Defined in: instance/instance.ts:58