I have the follow setup and when I loop through using for...of and get an error of :
for...of
Property "country" doesn\'t exist on type "o
If your object could contain any key/value pairs, you could declare an interface called keyable like :
keyable
interface keyable { [key: string]: any }
then use it as follows :
let countryProviders: keyable[];
or
let countryProviders: Array;