interface IDurableObjectNamespace
Since 0.2.0

A Durable Object namespace binding.

Exposed as an escape hatch. A DO-backed realtime backplane and distributed lock are M52d, because both need the application to export a DO class.

Methods

idFromName(name: string): unknown

Derives a stable object id from a name.

get(id: unknown): IServiceBinding

Returns a stub for the object with this id.

Usage

import { type IDurableObjectNamespace } from "cloudflare-plugin/src/index.ts";