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 the warning "Use an interface instead of a type literal" is thrown, I should be able to replace the type literal by an interface without causing an error. If type and interface are not equivalent such a warning should not be thrown.
Actual behavior:
When I'm replacing the type literal at interface.ts line 19 with an interface definition (see commented out code), the compiler throws an error: [33:11] Interface 'ITestC' incorrectly extends interface IParent [...] Index signature is missing in type 'IFoo'.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.1
Code
interfaces.ts
anywhere else
Expected behavior:
If the warning "Use an interface instead of a type literal" is thrown, I should be able to replace the type literal by an interface without causing an error. If
type
andinterface
are not equivalent such a warning should not be thrown.Actual behavior:
When I'm replacing the type literal at interface.ts line 19 with an interface definition (see commented out code), the compiler throws an error: [33:11] Interface 'ITestC' incorrectly extends interface
IParent
[...] Index signature is missing in type 'IFoo'.The text was updated successfully, but these errors were encountered: