use strict null checks

This commit is contained in:
sbriat
2023-08-25 15:16:33 +02:00
parent effe51b9a2
commit f15e7d11b1
16 changed files with 91 additions and 165 deletions

View File

@@ -18,7 +18,7 @@ export class CreateAdCommand extends Command {
constructor(props: CommandProps<CreateAdCommand>) {
super(props);
this.id = props.id;
this.id = props.id as string;
this.driver = props.driver;
this.passenger = props.passenger;
this.frequency = props.frequency;

View File

@@ -18,10 +18,10 @@ export type AdBaseModel = {
seatsProposed: number;
seatsRequested: number;
strict: boolean;
driverDuration: number;
driverDistance: number;
passengerDuration: number;
passengerDistance: number;
driverDuration?: number;
driverDistance?: number;
passengerDuration?: number;
passengerDistance?: number;
fwdAzimuth: number;
backAzimuth: number;
createdAt: Date;