@scayle/storefront-core
Version:
Collection of essential utilities to work with the Storefront API
10 lines (9 loc) • 464 B
TypeScript
import type { BasketPackageInformation } from '@scayle/storefront-api';
/**
* Extracts the earliest and latest delivery dates from an array of basket package information.
*
* @param packages An array of basket package information objects.
*
* @returns A tuple containing the earliest and latest delivery dates, or null if no dates are found.
*/
export declare const getShippingDates: (packages: BasketPackageInformation[]) => [string | null, string | null];