i have an interface and am trying to set up a index signature but am running into the above error, from the articles i found online im not sure what im doing wrong here
interface ToolsLevel {
[toolName: string]: ToolLevel; // error here
}
interface ToolLevel {
value: number;
ability: string;
roll: {
min: number | null;
max: number | null;
mode: number;
},
bonuses: {
check: string;
}
}