Leveraging “unknown” instead of “any”
In TypeScript, you may have heard that the any type is seen as a kind of “get out of jail free” card. It allows any value to be assigned to a variable of type any, which effectively disabling TypeScript’s static type checking. That might be convenient in certain situations, but...