Currently, I am working on an interface where I need to implement the following structure:
export interface Passenger {
id: number,
name: string,
checkedIn: boolean,
checkedInDate?: Date // <- Is it possible to make this field optional only when checkedIn is set to false?
}