Type Widening in TypeScript
What exactly is type widening?
Type widening is the process by which the type checker assigns a type to a variable initialized with a constant value when no type annotations are provided.
Example: Given
let x = 'v'
When type widening is done x will h...
dozie.dev4 min read