Skip to content

RuntimeConfig

Defined in: packages/runtime/src/platform/types.ts:223

Construction-time config for a Runtime.

Passed to the platform factories (createNodeCapabilities wrappers like nodeRuntime, etc.) at the time the Runtime is built — NOT per-boot. For per-boot options, see BootOpts.

optional capabilities?: Partial<PlatformCapabilities>

Defined in: packages/runtime/src/platform/types.ts:233

Selectively override individual PlatformCapabilities methods.

Merged over the platform defaults via { ...defaults, ...overrides } — any method you supply replaces the default. Useful for tests that want to spy on fetch without reimplementing the others, or for hosts that have a stricter importEsm (e.g. a sandboxed iframe).