This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Compiled JS always declares emitted org.accordproject.base.Event
#714
Labels
Describe the bug
If a
clause
doesn't use anemits
declaration, compiled JS code always includes a JSDoc annotationorg.accordproject.base.Event
.Expected behavior
I would expect the type checker to allow a more precise output. For example, if it can be inferred that the clause cannot emit an Event, the emitted type annotation should be empty.
Furthermore, where the type of an emitted event can be inferred, the emitted type should be more specific.
The text was updated successfully, but these errors were encountered: