registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -1,3 +1,9 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link differenceInCalendarISOWeeks} function options.
*/
export interface DifferenceInCalendarISOWeeksOptions
extends ContextOptions<Date> {}
/**
* @name differenceInCalendarISOWeeks
* @category ISO Week Helpers
@@ -8,10 +14,9 @@
*
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
*
* @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).
*
* @param dateLeft - The later date
* @param dateRight - The earlier date
* @param laterDate - The later date
* @param earlierDate - The earlier date
* @param options - An object with options
*
* @returns The number of calendar ISO weeks
*
@@ -19,11 +24,12 @@
* // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014?
* const result = differenceInCalendarISOWeeks(
* new Date(2014, 6, 21),
* new Date(2014, 6, 6)
* )
* new Date(2014, 6, 6),
* );
* //=> 3
*/
export declare function differenceInCalendarISOWeeks<DateType extends Date>(
dateLeft: DateType | number | string,
dateRight: DateType | number | string,
export declare function differenceInCalendarISOWeeks(
laterDate: DateArg<Date> & {},
earlierDate: DateArg<Date> & {},
options?: DifferenceInCalendarISOWeeksOptions | undefined,
): number;