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
I've been following along the book just fine writing the code in TypeScript instead of JavaScript, and have a question regarding The cube.tick Method section of the material.
The material mentions:
However, we shouldn’t get into the habit of doing this carelessly since in certain situations it can cause performance issues. We’ll only allow ourselves to do this here as the alternatives are more complex.
I'm curious what the alternatives would be because I have to add // @ts-ignore to the line before the cube.tick function. I'd love to be pointed in the direction of better ways to implement this functionality to deepen my learning and apply it in a more TypeScript safe way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been following along the book just fine writing the code in TypeScript instead of JavaScript, and have a question regarding The
cube.tick
Method section of the material.The material mentions:
I'm curious what the alternatives would be because I have to add
// @ts-ignore
to the line before thecube.tick
function. I'd love to be pointed in the direction of better ways to implement this functionality to deepen my learning and apply it in a more TypeScript safe way.Beta Was this translation helpful? Give feedback.
All reactions