articleprogrammingtype-systems
Type Narrowing in TypeScript
Summary Type narrowing gives TypeScript enough evidence to treat a broad value as a more precise type in a particular part of a program. Lauren Tan demonstrates the idea with a lexer and parser: a general Token must be n