I have update tslint to eslint, and now for this class i have error like this
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'SearchQuery'.
This is class I am talking about
export abstract class SearchQuery {
transformQueryIntoText(): QueryValue[] {
const queryValues: QueryValue[] = [];
for (const key of Object.keys(this)) {
if (this[key]) {
queryValues.push({
name: key,
value: this[key].toString()
});
}
}
return queryValues;
}
}
I dont know even how to start?