Tim Mouskhelichvili • September 28, 2022 • 3 minutes to read
TypeScript adds strong typings to your JavaScript. Everything has its type in TypeScript. However, the compiler is sometimes incorrect and infers the wrong type. Luckily, TypeScript offers a special keyword to cast object types. The as keyword converts an [...]