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:
This code compiles without errors in TS 3.4.5
Actual behavior:
In 3.5@next, there is the error:
Property 'foo' in type 'B' is not assignable to the same property in base type 'I'.
Type '() => object' is not assignable to type '() => { [key: string]: unknown; }'.
Type 'object' is not assignable to type '{ [key: string]: unknown; }'.
Index signature is missing in type '{}'.
This may be by design but I'm not sure which issue tracks the change.
Activity
ahejlsberg commentedon May 14, 2019
This is an intended effect of #30637. See rationale here.