Topic
A reference to an event: its name, and the type of the data that the event carries. The events that the app sends are under ctx.topics, and a plugin creates a new one with ctx.notifications.declare. A topic is given to ctx.notifications.post and to ctx.notifications.subscribe.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Description |
|---|---|
T |
the type of the data that the event carries |
Properties
Section titled “Properties”readonly info?: T;Carries the type of the data, for type checking. It never holds a value.
readonly name: string;The name of the event. For an event of a plugin, it begins with the id of the plugin.
