Fixed type fixes and errors

This commit is contained in:
SepehrYahyaee
2026-09-14 12:49:46 +03:30
parent 1b69da38ff
commit 51166a8d0d
3 changed files with 126 additions and 8 deletions

View File

@@ -38,8 +38,8 @@ export class Person {
@Prop({ type: Boolean })
userNoCertificate?: boolean;
@Prop({ type: Number })
insurerBirthday?: number;
@Prop({ type: String })
insurerBirthday?: string;
@Prop({ type: String })
driverBirthday?: string | null;
@@ -90,7 +90,7 @@ export class Vehicle {
@Prop() name?: string;
@Prop() model?: string;
@Prop() type?: string;
@Prop() isNew?: boolean;
@Prop({ type: Boolean }) isNewCar?: boolean;
@Prop({ enum: ["CURRENT", "RECENTLY_TRANSFERRED"] })
registrationState?: "CURRENT" | "RECENTLY_TRANSFERRED";
@Prop() previousPlateId?: string;