You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Hey all, I'm working on a Typescript/React/Ecsy side project in the vein of react-ecs, and I'm running into weird typing issues that are hard to resolve based on use of class constructors and static properties. For now I've been able to get some pretty good workarounds.
I was working on fixing up Component types, primarily around getting inferred types to work on schema properties (Here's where I'm at right now).
As you can see, this allows you to get type inference on your schema properties (e.g. Position.x, Position.y). Let me know if this looks good and I can make a PR.
The text was updated successfully, but these errors were encountered:
Hey all, I'm working on a Typescript/React/Ecsy side project in the vein of react-ecs, and I'm running into weird typing issues that are hard to resolve based on use of class constructors and static properties. For now I've been able to get some pretty good workarounds.
I was working on fixing up
Component
types, primarily around getting inferred types to work on schema properties (Here's where I'm at right now).As you can see, this allows you to get type inference on your schema properties (e.g.
Position.x
,Position.y
). Let me know if this looks good and I can make a PR.The text was updated successfully, but these errors were encountered: