Web Analytics
By clicking "Accept" you agree to our privacy and cookie policy.
typescriptAdding special values to types in TypeScript
One way of adding special values is to create a new type which is a superset of the base type where some values are special. These special values are called sentinels. They exist in band (think inside the same channel), as siblings of normal values. Read more