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
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
The Person interface cannot be assigned to the Dict interface. According to microsoft/TypeScript#15300, this is intended behavior
However, it is not intuitive behavior and should be documented. The Indexable Interfaces section in the Interfaces page seems like a good place.
interfaceDict{[index: string]: string;}interfacePerson{
name: string;
age: number;}constperson: Person={name: "Brendan Elrich",age: 57};
let y: Dicty=person;// error: Index signature is missing in type
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
Person
interface cannot be assigned to theDict
interface. According to microsoft/TypeScript#15300, this is intended behaviorHowever, it is not intuitive behavior and should be documented. The Indexable Interfaces section in the Interfaces page seems like a good place.
The text was updated successfully, but these errors were encountered: