I truly wish I could get Opaque Types (Newtypes?) in Typescript. Great writeup!
I took a look and found that it is possible to do something similar here (albeit with more heavy lifting)
https://www.ferreira.io/posts/opaque-branded-types-in-typesc...