Expand description
#3477 (slice C1): the Durable Object classes of a Worker’s Container
instances.
One file per Worker, containers.ts, re-exported from index.ts because
Cloudflare resolves a class_name against the exports of the Worker’s
main. Each class is built by the runtime’s containerClass from the
declaration’s literals, so the generated file holds data and no logic, as
the agent classes’ serialiseAgentClass wrapper does.
Functions§
- container_
class_ names - The classes
index.tsre-exports, one per container binding, in binding order. Empty when the Worker has no container. - emit_
containers_ ts containers.ts, orNonewhen the Worker has no container.