TypeScript structural typing & branding
Within TypeScript a way to define an indentifier as a number is as follows:
const productId: number = 1;
const orderId: number = 1;
Here productId and orderId are both numbers. However there's a few things wrong with this:
Primitive types don't ofte...
pineapple.codes4 min read