Skip to content
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

Open
mttrbrts opened this issue Nov 22, 2019 · 0 comments
Open

Compiled JS always declares emitted org.accordproject.base.Event #714

mttrbrts opened this issue Nov 22, 2019 · 0 comments

Comments

@mttrbrts
Copy link
Member

Describe the bug
If a clause doesn't use an emits declaration, compiled JS code always includes a JSDoc annotation org.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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants