Below is the method I am working with:
public test(keyValue : { [index:string] : string} ){
...
}
I need to modify the signature so that keyValue (an array filled with strings) will have an index of type string. However, I still want to be able to use it as an array containing strings in a way like this (though the syntax might not be correct for using both key and value at once):
keyValue.forEach(key, value => {
//key is string
//value is string
});