So basically the same as type safety through constructor constraints and instanceof... Just a bit cleaner (maybe) If you could extend primitives in Typescript, you'd have "amount extends Number" and put the necessary…
So basically the same as type safety through constructor constraints and instanceof... Just a bit cleaner (maybe) If you could extend primitives in Typescript, you'd have "amount extends Number" and put the necessary…