Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints #2153

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Type hints #2153

merged 1 commit into from
Apr 30, 2024

Conversation

nikku
Copy link
Member

@nikku nikku commented Apr 29, 2024

This adds the ability to type the contents of your bpmn-js powered editor:

capture d5mqSZ_optimized

TODO

  • Expand to all viewer/modeler variants
  • Figure out how to build on top of existing (core) bindings
  • Consider typing existing events

Closes #2121

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Apr 29, 2024
@nikku nikku marked this pull request as ready for review April 29, 2024 18:30
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Apr 29, 2024
@nikku nikku requested review from a team, philippfromme and barmac and removed request for a team April 29, 2024 18:30
@nikku nikku force-pushed the type-hints branch 2 times, most recently from 6fdde53 to 707ad8a Compare April 29, 2024 18:31
This PR builds on upon diagram-js provided service and event typing:

* bpmn-io/diagram-js#862

It allows you to specify (public) types exposed by your BPMN toolkit
trough a ServiceMap. Events exposed are parsed from the EventBus
dynamic types.

Closes #2121
Copy link
Member

@barmac barmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement!

Consider typing existing events

This can be done in a separate PR. I am counting on our community. Perhaps we could blog about this or have a forum post?

@nikku
Copy link
Member Author

nikku commented Apr 30, 2024

I am counting on our community. Perhaps we could blog about this or have a forum post?

Absolutely. I wanted to ship the basic increment first to unlock future improvements. The blog is a good idea; maybe I manage to write it the next days.

@nikku nikku merged commit edfec4c into develop Apr 30, 2024
12 checks passed
@nikku nikku deleted the type-hints branch April 30, 2024 08:12
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to type services and events
2 participants