1 2 3 4 5 6 7 8 9 10 11 12
export interface Bank { balance: number history: any[] } export function cleanBank(data: any): Bank { return { balance: data?.banking?.balance ?? 0, // TODO: make transactions good history: data?.banking?.transactions ?? [] } }