correct type errors

This commit is contained in:
Julian Krauser 2025-05-11 16:44:16 +02:00
parent bdc139f37f
commit d5c33d899f
5 changed files with 19 additions and 5 deletions

View file

@ -22,7 +22,7 @@ export interface UpdateInspectionPlanViewModel {
id: string;
title: string;
inspectionInterval: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
remindTime: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
remindTime?: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
}
export interface InspectionPointViewModel {

View file

@ -1,8 +1,11 @@
import type { VehicleTypeViewModel } from "../vehicleType/vehicleType.models";
export interface VehicleViewModel {
id: string;
name: string;
location: string;
vehicleTypeId: string;
vehicleType: VehicleTypeViewModel;
}
export interface CreateVehicleViewModel {
@ -15,5 +18,4 @@ export interface UpdateVehicleViewModel {
id: string;
name: string;
location: string;
vehicleTypeId: string;
}