I am making a type object in Typescript and getting below error.
Property 'template' of type 'string' is not assignable to string index type '{ data: object; changedProperties: object; }
type Records = {
template: string;
id: string;
[usernmae: string]: {
data: object;
changedProperties: object;
}
}
Please guide me as how to modify the object in order to work fine.