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
And that makes the type returned by add() be only Game<Comp>
If I remove move() component, this is transformed in
I think the fix is to make an extended Comp type for move(), such MoveComp.
The text was updated successfully, but these errors were encountered:
lajbel
changed the title
TS move() comp returns Comp and that bugs game object type
TS move() comp returns Comp type, and that "bugs" add() return type
Mar 11, 2023
lajbel
changed the title
TS move() comp returns Comp type, and that "bugs" add() return type
TS move() comp returns Comp type, and that "bugs" add() return type
Mar 11, 2023
The
move
component typescript returns aComp
typeAnd that makes the type returned by
add()
be onlyGame<Comp>
If I remove
move()
component, this is transformed inI think the fix is to make an extended
Comp
type formove()
, suchMoveComp
.The text was updated successfully, but these errors were encountered: