Skip to content
Commit Detail

Commit c810333

Author
Kenton Varda <kenton@cloudflare.com> 2025-08-16 16:52:04 -0500
Parents
759f58d
Tree
8e6791a
Allow loopback actor namespaces in ctx.exports to be used as classes.

When an exported actor class has storage configured, then its entry in `ctx.exports` becomes a namespace binding. However, we would like to allow it to *also* be used as an actor class binding, in case you wanted to use the same class as a facet.

This change introduces loopback variants of the namespace binding types which simultaneously behave like `LoopbackDurableObjectClass`, so they can be used in both contexts.

Files changed