@votemike/property
Version:
Property class and related classes
23 lines (22 loc) • 828 B
TypeScript
import Finance, { FinanceInterface } from './finance';
import Payment, { PaymentInterface } from './payment';
import Rental, { RentalInterface } from './rental';
interface PropertyInterface {
name: string;
finances: FinanceInterface[];
payments: PaymentInterface[];
rentals: RentalInterface[];
}
export default class Property implements PropertyInterface {
name: string;
finances: Finance[];
payments: Payment[];
rentals: Rental[];
constructor(name: string, finances: Finance[], payments: Payment[], rentals: Rental[]);
calculateMonthlyCost(useTeaserRate?: boolean): number;
calculateMonthlyIncome(): number;
calculateMonthlyProfit(useTeaserRate?: boolean): number;
static fromJson(json: PropertyInterface): any;
static reviver(key: string, value: any): any;
}
export {};