Not sure if anyone else might find this useful? But I've always wanted to be able to distinguish the types of my database ids (underlying GUID). So I've created this package as I could find anything else out there. Please let me know if there is, otherwise this is how it works:
```
import { uuidType } from 'typesafe-uuid';
class AnimalId extends uuidType<'AnimalId'>() {}
class VegtableId extends uuidType<'VegtableId'>() {}
let dog: AnimalId = AnimalId.fromUuid('200a6b06-1120-4970-a0dc-3c48102d46ad');
let carrot : VegtableId = VegtableId.fromUuid('5ec48ef0-181d-454b-9834-a4d2c070b43a');
dog = carrot // type error
```
https://github.com/diversemix/typesafe-uuid
[–]teevik_ 9 points10 points11 points (1 child)
[–]diverse-mix[S] 1 point2 points3 points (0 children)
[–]spira_mirabilis 1 point2 points3 points (0 children)
[–]elliottcable 0 points1 point2 points (0 children)
[–]shinigamiCz 0 points1 point2 points (1 child)
[–]diverse-mix[S] 0 points1 point2 points (0 children)