I have an endpoint that returns an Observable<Operacao[]>, but I need an array of Operacao[]. How to convert this return to get an Operacao array?
This is my endpoint:
obterOperacoes(): Observable<Operacao[]> {
let operacoes = this.http
.get<Operacao[]>(this.UrlServiceV1 + 'operacoes', super.ObterAuthHeaderJson())
.pipe(catchError(super.serviceError));
return operacoes;
}
Ps: Operacao is a simple Typescript class.
When I inspect what's in operacoes, what I find is this:
