Struggling to generate an observable from an array due to the recurring error message (A tuple type element list cannot be empty). Despite multiple attempts, I'm unable to resolve this issue.
listDonationsHistory(): Observable<[]> {
const donationsHistory = [
{
id :1,
type :"Aeri",
amount: 200,
frequency: 'monthly',
date: '17-09-2017',
account:'ATYTYTYY6778'
},
{
id :2,
type :"Aeri",
amount: 200,
frequency: 'monthly',
date: '17-09-2017',
account:'ATYTYTYY6778'
}
];
return Observable.from(donationsHistory);
}