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
Type assertions are everywhere in our code (eg. stepper/stepper.ts).
They defeat the point of having a type system by silencing the compiler on type errors. Type assertions only affect the static semantics of a program but not the dynamic semantics, meaning that even though the TypeScript compiler doesn't complain, our program could run into runtime type errors. Instead, we should make use of type narrowing.
See pull request #1453
The text was updated successfully, but these errors were encountered:
Type assertions are everywhere in our code (eg. stepper/stepper.ts).
The text was updated successfully, but these errors were encountered: