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
Expected behavior:
No compile errors. This was the behavior in 2.7.2. Actual behavior:
With noImplicitAny=true, the Partial and Pick versions of the type triggers error TS7017: Element implicitly has an 'any' type because type 'Partial<IFruitMetadata>' has no index signature. Playground Link
I think so? But @ahejlsberg was unenthused with that fix and was looking for a more holistic approach to the problems and inconsistencies we have in the keyof area in general. (Though I may have a revision that's a little closer to acceptable)
TypeScript Version: 2.9.0-dev.20180402
Search Terms: partial mapped types index signature enum
Code
Expected behavior:
No compile errors. This was the behavior in 2.7.2.
Actual behavior:
With noImplicitAny=true, the Partial and Pick versions of the type triggers error TS7017: Element implicitly has an 'any' type because type 'Partial<IFruitMetadata>' has no index signature.
Playground Link
#22892 looks like it might be related.
The text was updated successfully, but these errors were encountered: