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 was archived by the owner on Nov 12, 2024. It is now read-only.
window.origin exists in browser and ts default definitions, which confuses ts with kaboom's own origin(): OriginComp, making game object type inference not working
What's the expected behavior?
window.origin should give kaboom's definition
Minimum reproducable code
// this will be a GameObj<any> instead of a GameObj<PosComp | RectComp | OriginComp>constthing=add([pos(120),rect(80,40),origin("center"),])
Live demo
No response
Is there an existing issue for this?
I've searched and there is no existing issue for this bug