Динамический диктат TypeScript
interface SampleObject {
color?: string;
width?: number;
[propName: string]: number | string;
}
Blue Bat
interface SampleObject {
color?: string;
width?: number;
[propName: string]: number | string;
}