Skip to content

DispatchNamespace

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:8295

get(name, args?, options?): object

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:8303

string

Name of the Worker script.

Arguments to Worker script.

DynamicDispatchOptions

Options for Dynamic Dispatch invocation.

object

A Fetcher object that allows you to send requests to the Worker script.

connect(address, options?): Socket

string | SocketAddress

SocketOptions

Socket

fetch(input, init?): Promise<Response>

RequestInfo<unknown, CfProperties<unknown>> | URL

RequestInit<CfProperties<unknown>>

Promise<Response>

If the Worker script does not exist in this dispatch namespace, an error will be thrown.