8000 Consider using Opaque types for better type safety · Issue #107 · StoneT2000/Dimensions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Consider using Opaque types for better type safety #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
StoneT2000 opened this issue Aug 30, 2020 · 0 comments
Open

Consider using Opaque types for better type safety #107

StoneT2000 opened this issue Aug 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@StoneT2000
Copy link
Owner

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 StoneT2000 added the enhancement New feature or request label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0