I want create a type called 'DataSource' with base attrs like 'index'.it has other unknown attr names, they value type is 'BaseClassData'.
interface DataSource{
index: number;
[key: string]: BaseClassData;
}
tslint send a error 'Property 'index' of type 'number' is not assignable to string index type 'BaseClassData', how to fix it