interface RuntimeAdapterFactories
Since 0.2.0

Map of platform → runtime adapter factory.

Supplying one replaces the built-in map wholesale, which is how a unit test builds services without the real runtime globals or OS permissions.

Properties

optional
deno: () => IRuntimeServices

Factory for Deno.

optional
node: () => IRuntimeServices

Factory for Node.js.

optional
bun: () => IRuntimeServices

Factory for Bun.

optional
cloudflare-workers: () => IRuntimeServices

Factory for Cloudflare Workers.

Usage

import { type RuntimeAdapterFactories } from "runtime/src/index.ts";