import { NavigationService } from "web-atoms-core/dist/services/NavigationService"; import { AtomViewModel } from "web-atoms-core/dist/view-model/AtomViewModel"; export interface IInsurance { id?: number; date?: Date; broker: string; type: string; applicants: IApplicant[]; } export interface IApplicant { name: string; type: string; address?: string; city?: string; } export default class InsuranceViewModel extends AtomViewModel { navigationService: NavigationService; model: IInsurance; readonly errorBroker: string; addApplicant(): void; save(): Promise; }