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
If named is const, we report the error as anticipated; so the issue here is simply that a computed property name of type string used to destructure something without an index signature to any should be an implicitAnyIndexError.
TypeScript Version: 2.9.0-dev.20180411
Search Terms:
Code
Expected behavior:
Element implicitly has an 'any' type because type '{ prop: string; }' has no index signature.
Actual behavior:
prop
isany
, but there is no implicit any errorPlayground Link: https://agentcooper.github.io/typescript-play/#code/DYUwLgBAdghgtiAJhAvBA5AMwPbfQbgChRIBvAbVgUQF0AuCABwCdtGBfVCUlthrXOnb4gA
Related Issues:
#23297 (comment)
The text was updated successfully, but these errors were encountered: