SUPER COOL! I actually didn't know you could do this. My preference is to actually define an Interface and then use `keyof MyInterface` - but I especially interfaces in Typescript!!pic.twitter.com/KXX08WunJ1
U tweetove putem weba ili aplikacija drugih proizvođača možete dodati podatke o lokaciji, kao što su grad ili točna lokacija. Povijest lokacija tweetova uvijek možete izbrisati. Saznajte više
SUPER COOL! I actually didn't know you could do this. My preference is to actually define an Interface and then use `keyof MyInterface` - but I especially interfaces in Typescript!!pic.twitter.com/KXX08WunJ1
That's not a bad idea either! If we're approaching it from that direction, I'd probably do this instead - a bit less repetition:pic.twitter.com/cRVzYXfLeI
Google's TS style guide is asking for "When providing a structural-based implementation, explicitly include the type at the declaration of the symbol", so implementation from @zackderose (with interface) would be more in-line with that.
So I'd typically go for these ones:pic.twitter.com/BEXkiNqWSl
Interesting! These looks like pretty solid alternatives.
It works with enums ?
It does! :)
I love your TS tips! How do you feel about using the #TypeScriptTips hashtag, please? It would be awesome to find them quicky and easily again down the road 
Thanks! I'll look into the hashtag thing :)
Super cool! What about nested definitions?
Not in general, I believe. Ideally, you'd need to have some way of referencing that nested part without using any the top level key.. Unless you can do it, then it's something like:pic.twitter.com/g8yOto9YvY
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.