Comment Comment by Tomuus You're asking for opaque types. This is kinda possible in typescript but you can only approximate it unfortunately.You may also want to consider a branded type, which can be useful but a little less strict. parent Tomuus 5 years ago
You may also want to consider a branded type, which can be useful but a little less strict.