You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when you get keys of some object by Object.keys, then assign value to it, will get an error like Element implicitly has an 'any' type because expression of type 'string' can't be used to index type
🔎 Search Terms
🕗 Version & Regression Information
This is a crash
This changed between versions ______ and _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
I was unable to test this on prior versions because _______
Bug Report
when you get keys of some object by
Object.keys
, then assign value to it, will get an error likeElement implicitly has an 'any' type because expression of type 'string' can't be used to index type
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
obj[key] will report error
🙂 Expected behavior
narrow
Object.keys
return type likemaybe we coule implement
UnionToTuple
like thingThe text was updated successfully, but these errors were encountered: