function createDenoRuntimeServices
createDenoRuntimeServices(
host?: DenoHost,
workers?: IWorkerHost,
dns?: IDnsResolver
): IRuntimeServices

Creates IRuntimeServices backed by Deno APIs.

Parameters

optional
host: DenoHost

Injected Deno host (defaults to real Deno global)

optional
workers: IWorkerHost

Injected worker host (defaults to the web Worker host)

optional
dns: IDnsResolver

Injected DNS resolver (defaults to one over the host's resolveDns)

Return Type

IRuntimeServices

Complete runtime services for Deno

Usage

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