Skip to main content
The Adapter Helper provides utilities for detecting the runtime environment and accessing environment variables.

Import

Functions

env()

Get environment variables and bindings in a type-safe way.
Context
required
The context object
T & Bindings
Environment variables and bindings
Example

getRuntimeKey()

Detect the current JavaScript runtime.
RuntimeKey
The detected runtime key
Example

Type-Safe Environment