Files
klz-cables.com/.pnpm-store/v10/files/6c/7ecc85998f43c6e58259c3544325ab70eb7904aca9c6774f6edbcc297dd5522df6521cbd31dc128efaf713d43f4df2806d1639e84f10f0721c5722267c19ae
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

34 lines
1005 B
Plaintext

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link differenceInCalendarMonths} function options.
*/
export interface DifferenceInCalendarMonthsOptions
extends ContextOptions<Date> {}
/**
* @name differenceInCalendarMonths
* @category Month Helpers
* @summary Get the number of calendar months between the given dates.
*
* @description
* Get the number of calendar months between the given dates.
*
* @param laterDate - The later date
* @param earlierDate - The earlier date
* @param options - An object with options
*
* @returns The number of calendar months
*
* @example
* // How many calendar months are between 31 January 2014 and 1 September 2014?
* const result = differenceInCalendarMonths(
* new Date(2014, 8, 1),
* new Date(2014, 0, 31)
* )
* //=> 8
*/
export declare function differenceInCalendarMonths(
laterDate: DateArg<Date> & {},
earlierDate: DateArg<Date> & {},
options?: DifferenceInCalendarMonthsOptions | undefined,
): number;