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,6 +1,8 @@
"use strict";
exports.nextSunday = nextSunday;
var _index = require("./nextDay.js");
import { nextDay } from "./nextDay.js";
/**
* The {@link nextSunday} function options.
*/
/**
* @name nextSunday
@@ -11,16 +13,21 @@ var _index = require("./nextDay.js");
* 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 Mar, 22, 2020?
* // When is the next Sunday after March 22, 2020?
* const result = nextSunday(new Date(2020, 2, 22))
* //=> Sun Mar 29 2020 00:00:00
*/
function nextSunday(date) {
return (0, _index.nextDay)(date, 0);
export function nextSunday(date, options) {
return nextDay(date, 0, options);
}
// Fallback for modularized imports:
export default nextSunday;