Skip to content

List all cast!-able static events for a component  #10

@sgrove

Description

@sgrove

We should possibly encourage components to be annotated with a list of possible events they can cast whenever possible (dynamic events may not be possible to list, but are pretty rare, I haven't come across the need for one yet).

This + an event registry gives us two nice tooling features out of the box:

  1. Tooling can look up the signature of an event (in the registry) and use that for e.g. test.check generating an event from a component
  2. Upon changing a component/event signature, it should be easy to query (at run time) for which dependencies are now dirty and need to be fixed. Particularly handy for upgrading, as we iterate through design decisions.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions