A great way to make sure the values you set to your variables matches what you would expect is to set specific types to them.
If you already have ...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for the post. Is there documentation on that
typeof myConst[number]
syntax? Specifically the[number]
part is something i've never seen in typescript, and can't find on the doc site.New TS Handbook has a mention about
[number]
syntax:Hi, I'm not sure. Been a while since I wrote this and its a gathering of things I read and things I just tested with code...
It was very educational. Thx for the post.
Wow!
Very big thanks!
Can you add how to create a type by type/interface (like object) values in typescript?
drive.google.com/file/d/1B-Jv-1VOK...
You're my friend!
A helpful cheat sheet. Thanks!