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
Unfortunately, the upgrade to v0.16.0 seems to no longer be able to detect when an object has a number property vs. a "stringified" "{number}" property. The following test correctly failed with v0.15.0, but passes with v0.16.0:
typeT={1: string;"2": string;};expectTypeOf<T>().toEqualTypeOf<{1: string;2: string;// on 0.15.0, this property had to be "2" (a string, not a number)}>();
Typescript itself doesn't really distinguish between these two cases, so I'd understand why this change was made, but I found the nuance helpful. For instance, this is perfectly legal: