intern-Assignment/Node-Assignments/Server/node_modules/date-fns/startOfTomorrow.d.ts

30 lines
798 B
TypeScript
Raw Permalink Normal View History

2025-01-31 09:50:39 +00:00
import type { ContextOptions } from "./types.js";
/**
* The {@link startOfTomorrow} function options.
*/
export interface StartOfTomorrowOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name startOfTomorrow
* @category Day Helpers
* @summary Return the start of tomorrow.
* @pure false
*
* @typeParam ContextDate - The `Date` type of the context function.
*
* @param options - An object with options
*
* @returns The start of tomorrow
*
* @description
* Return the start of tomorrow.
*
* @example
* // If today is 6 October 2014:
* const result = startOfTomorrow()
* //=> Tue Oct 7 2014 00:00:00
*/
export declare function startOfTomorrow<ContextDate extends Date>(
options?: StartOfTomorrowOptions<ContextDate> | undefined,
): ContextDate;