Rocky_Mountain_Vending/.pnpm-store/v10/files/f1/a29a1655b72d7721a36f8769ece1b4e725db739b47c8ea89e2c69b29361ef0fe9a6fafe6c2044798a09b5b22ccdfee3f6ad264ba3f266318d5c180bd585493
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

50 lines
1.3 KiB
Text

import type { ContextOptions, DateArg, Interval } from "./types.js";
/**
* The {@link isWithinInterval} function options.
*/
export interface IsWithinIntervalOptions extends ContextOptions<Date> {}
/**
* @name isWithinInterval
* @category Interval Helpers
* @summary Is the given date within the interval?
*
* @description
* Is the given date within the interval? (Including start and end.)
*
* @param date - The date to check
* @param interval - The interval to check
* @param options - An object with options
*
* @returns The date is within the interval
*
* @example
* // For the date within the interval:
* isWithinInterval(new Date(2014, 0, 3), {
* start: new Date(2014, 0, 1),
* end: new Date(2014, 0, 7)
* })
* // => true
*
* @example
* // For the date outside of the interval:
* isWithinInterval(new Date(2014, 0, 10), {
* start: new Date(2014, 0, 1),
* end: new Date(2014, 0, 7)
* })
* // => false
*
* @example
* // For date equal to the interval start:
* isWithinInterval(date, { start, end: date })
* // => true
*
* @example
* // For date equal to the interval end:
* isWithinInterval(date, { start: date, end })
* // => true
*/
export declare function isWithinInterval(
date: DateArg<Date> & {},
interval: Interval,
options?: IsWithinIntervalOptions | undefined,
): boolean;