this might be a really simple question after all. But I didn't find a solution yet.
I have a dynamic object defined with a signature index. Usually, all properties should be of type string. But there are a few exception. width for example should always be of type number. Yet when I add it to my interface I get the error
error TS2411: Property 'width' of type 'number' is not assignable to string index type 'string'.
This would be my interface:
interface DynamicStyleObject {
[ key : string ] : string;
width : number;
}