function RuntimePlugin
RuntimePlugin(options?: RuntimeOptions): IPlugin

Creates the RuntimePlugin that provides runtime-agnostic services and HTTP adapter.

This plugin must be registered in every application. It has the highest priority so its services are available to all other plugins during registration.

Parameters

optional
options: RuntimeOptions

Optional configuration

Return Type

IPlugin

The runtime plugin

Throws

Error

If no HTTP adapter is available for the platform

Usage

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