EventDeclaration
interfaceAn event your mod publishes, declared at author time. This is the declaration, not an occurrence. Hold the value and pass it to `ctx.emit(declaration, payload)` to publish, or `ctx.on(declaration, listener)` to listen. Other mods and the host can subscribe by the same id.
Import
import { EventDeclaration } from '@modular/sdk';Members6
- __@runtimeContractInput@15821optional
TValue- id
EventDeclarationIdIdentifier, unique within the mod.
- kind
'event'- sensitivity
DataSensitivityHow freely the host may share the payload.
- stability
DataStabilityCompatibility promise you are making to subscribers.
- titleoptional
stringLabel shown where the host lists mod events.