Flashes Home Search Notifications Sign in Post
Eduardo.𝚟𝚞𝚎 @esm.dev · May 15
1 / 2

TIL you can very simply type the key of a `for in` loop in TS by just hoisting the variable

29 likes 2 replies

?

Replies

Larry Williamson (L422Y) Β· May 15

weird

Eduardo.𝚟𝚞𝚎 · May 15

to be fair, string is the correct type because keys can be added. Only do this if you freeze the object or it’s never exposed to user code

Legal

Privacy Policy Terms and Conditions

Contact

FAQs Feedback

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store

Feeds

  • Global
  • Trending
  • Blacksky Images
  • Photography
  • Discover
Browse all feeds
Feedback Ideas, bugs, and what ships next
Privacy Policy Terms and Conditions FAQs Bluesky Instagram Threads
Get it on the App Store