What is the “type” reserved word in TypeScript?
It’s used for “type aliases”. For example: type StringOrNumber = string | number; type DictionaryOfStringAndPerson = Dictionary<string, Person>; Reference: (edit: removed outdated link) TypeScript Specification v1.5 (section 3.9, “Type Aliases”, pages 46 & 47) Update: (edit: removed outdated link) Now on section 3.10 of the 1.8 spec. Thanks @RandallFlagg for the updated spec and link … Read more