Dimensions icon indicating copy to clipboard operation
Dimensions copied to clipboard

Consider using Opaque types for better type safety

Open StoneT2000 opened this issue 5 years ago • 0 comments

Certain types like player id nanoids and Agent.ID are effectively just strings or numbers, leading to lower type safety in typescript as it won't catch errors when perhaps a player id is not used in the right place.

https://codemix.com/opaque-types-in-javascript/

StoneT2000 avatar Aug 30 '20 22:08 StoneT2000