node-debt-snowball
Version:
Node script to calculate debt repayment using the snowball method
11 lines (10 loc) • 353 B
TypeScript
import type { PaymentPlanObject, ResultsObject } from './types';
declare class Results implements ResultsObject {
totalInterestPaid: number;
totalPayments: number;
strategy: string;
payments: PaymentPlanObject[];
constructor(data: PaymentPlanObject[], strategy: string);
calculateTotalInterestPaid(): number;
}
export = Results;