interface ErrorContainer {
[props: string]: string;
}
All I know is that every property which is added to this object must have a property name, which can be interpreted into a string, must contain a string.
i.e id: string;
i.e
const errorBag: ErrorContainer = {
email: “not a valid email”,
username: ‘Must start wiht capital character’
};
[props: number]
1: “hahahah”;