Adding type safety to object IDs in TypeScript
kravchyk.comI was creating a type for an options object of a function, one of the options properties would accept an ID of the item (string based UUID) or a special value, i.e. ‘currentNode’. Initially I would come up with something … Read more