fetchCurrenciesData(): currencyInterface[]{
let currencyArray: **any**[] = [];
this.http
.get(`${this.url}?from=${this.currency1}&to=${this.baseCurrency}&amount=1&places=2`)
.subscribe(response => currencyArray.push(response))
this.http
.get(`${this.url}?from=${this.currency2}&to=${this.baseCurrency}&amount=1&places=2`)
.subscribe(response => currencyArray.push(response))
return currencyArray
}
I am attempting to update the type of elements in my array from any to currencyInterface, but I am encountering an issue involving the title on each "res". How can I resolve this?