Types

API Reference for types exported by run.

Types

Types exported by run.

import type { RunInput, RunnerOptions } from 'run';

const input: RunInput = {
  source: 'return 6 * 7;',
};

const options: RunnerOptions = {
  limits: { timeoutMs: 10_000 },
};

Import

import type {
  HostFunctionContext,
  HostFunction,
  HostFunctionGroup,
  HostFunctionResumeContext,
  HostFunctions,
  ContinuationCodec,
  ContinuationOperationContext,
  ContinuationStorage,
  RunCompletedResult,
  RunContinuationState,
  RunInput,
  RunInterruptedResult,
  RunInterruption,
  RunLedgerEntry,
  RunLimits,
  RunModuleLoader,
  RunResolution,
  Runner,
  RunnerOptions,
  RunResult,
  SignedContinuationCodecOptions,
  StoredContinuation,
  SyncHostFunctions,
} from 'run';

API Signature

Execution Types

Prop

Type

Runner Types

Prop

Type

Host Function Types

Prop

Type

Continuation Types

Prop

Type