Skip to content

Glossary: TypeScript Basics

widening

Also written: widens, widened

TypeScript inferring a general type such as `string` instead of `"UPS"` for a value that can change, like a `let` variable or an object property.

Where the book teaches it

Related terms

literal typeas consttype inference