30 lines
798 B
TypeScript
30 lines
798 B
TypeScript
|
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;
|