Rocky_Mountain_Vending/.pnpm-store/v10/files/02/6de8501da5bd628e0658457355fc9a220f47a2c845fd2038ce542e14f48246d9e440fdee282b1c8ef848aa9b7b4a0b74c48a97810db92ee6297a9aba73319b
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

34 lines
1.1 KiB
Text

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link nextSunday} function options.
*/
export interface NextSundayOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name nextSunday
* @category Weekday Helpers
* @summary When is the next Sunday?
*
* @description
* When is the next Sunday?
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned if a context is provided.
*
* @param date - The date to start counting from
* @param options - An object with options
*
* @returns The next Sunday
*
* @example
* // When is the next Sunday after March 22, 2020?
* const result = nextSunday(new Date(2020, 2, 22))
* //=> Sun Mar 29 2020 00:00:00
*/
export declare function nextSunday<
DateType extends Date,
ResultDate extends Date = DateType,
>(
date: DateArg<DateType>,
options?: NextSundayOptions<ResultDate> | undefined,
): ResultDate;