author | handle | source | date |
---|---|---|---|
Erik Rasmussen 👨🏻💻🇺🇸🇪🇸 |
@erikras |
2021-11-09 09:11:20 UTC |
Erik Rasmussen 👨🏻💻🇺🇸🇪🇸 (@erikras) - November 9, 2021 at 5:11 PM
#TypeScript Pro Tip: When passing around unique identifiers of objects, select the type of the identifier right off of the object type.
- More refactor-proof 🔒
- Less cognitive load 🤯
- Much more legible to others 🧐 pic.twitter.com/iAUVQBZOdg