TypeScript: Value Types

TypeScript
Value Types

by Markus Tacker

Value Types are are used to enable runtime validation of parameters. This provides a simple and expressive way to ensure their validity and convey their semantic meaning in code at the same time while making this transparent for the caller.