projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Allow more derived State classes to be parameterized with a generic type #1022

Closed jeevcat closed 4 months ago

jeevcat commented 6 months ago

Checklist

What, why and how?

Prevent the need to do type assertions on the engine member on a number of classes which derive from State by adding a generic parameter which is passed to the derived class.

Feel good image:

noice

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 09ed60ff64c670730dc5579412b1122261bc3718

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ------------------------------------- | ----- | | @projectstorm/react-canvas-core | Patch | | @projectstorm/react-diagrams-core | Patch | | @projectstorm/react-diagrams-defaults | Patch | | @projectstorm/react-diagrams-routing | Patch | | @projectstorm/react-diagrams | Patch | | @projectstorm/react-diagrams-gallery | Patch | | @projectstorm/react-diagrams-demo | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR