import {
    IConnectingFlight,
    IDirectFlight,
    IMultiLegFlight,
} from '@typings/flight/flight';

export type IWithLeg =
    | Pick<IDirectFlight, 'routeType' | 'leg'>
    | Pick<IMultiLegFlight, 'routeType' | 'legs'>
    | Pick<IConnectingFlight, 'routeType' | 'flights'>;
