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,8 +1,10 @@
"use strict";
exports.eachWeekendOfYear = eachWeekendOfYear;
var _index = require("./eachWeekendOfInterval.js");
var _index2 = require("./endOfYear.js");
var _index3 = require("./startOfYear.js");
import { eachWeekendOfInterval } from "./eachWeekendOfInterval.js";
import { endOfYear } from "./endOfYear.js";
import { startOfYear } from "./startOfYear.js";
/**
* The {@link eachWeekendOfYear} function options.
*/
/**
* @name eachWeekendOfYear
@@ -13,8 +15,10 @@ var _index3 = require("./startOfYear.js");
* Get all the Saturdays and Sundays in the year.
*
* @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 from the context function if it is passed, or inferred from the arguments.
*
* @param date - The given year
* @param options - An object with options
*
* @returns An array containing all the Saturdays and Sundays
*
@@ -29,8 +33,11 @@ var _index3 = require("./startOfYear.js");
* // ]
* ]
*/
function eachWeekendOfYear(date) {
const start = (0, _index3.startOfYear)(date);
const end = (0, _index2.endOfYear)(date);
return (0, _index.eachWeekendOfInterval)({ start, end });
export function eachWeekendOfYear(date, options) {
const start = startOfYear(date, options);
const end = endOfYear(date, options);
return eachWeekendOfInterval({ start, end }, options);
}
// Fallback for modularized imports:
export default eachWeekendOfYear;