TypeScript Type Assertions: as and angle-bracket
Type assertions are TypeScript’s way of letting you override the compiler’s type inference. They’re essentially you telling the compiler: ‘I know more about this value’s type than you do, so trust…
Read more →