Interfacetypesv0.13.0
DispatchBag
The read and write surface of the per-dispatch bag. DispatchContext in @seedcord/core implements it. Declared here so RenderContext can carry one without importing the concrete class.
interface DispatchBagget<Key>(key: Key): DispatchState[Key] | undefinedrequire<Key>(
key: Key
): Exclude<DispatchState[Key], undefined>Throws:
A SeedcordError If nothing set the key on this dispatch.
set<Key>(key: Key, value: DispatchState[Key]): void