Skip to content

Commit

Permalink
Improve JSDoc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 26, 2024
1 parent 97c79b4 commit 3773e9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-date-picker/src/shared/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import type { RangeType } from './types.js';
*
* @param {RangeType} rangeType Range type (e.g. 'day')
* @param {Date} date Date.
* @returns {Date} Beginning of the range.
*/
export function getBegin(rangeType: RangeType, date: Date): Date {
switch (rangeType) {
Expand All @@ -37,6 +38,7 @@ export function getBegin(rangeType: RangeType, date: Date): Date {
*
* @param {RangeType} rangeType Range type (e.g. 'day')
* @param {Date} date Date.
* @returns {Date} End of the range.
*/
export function getEnd(rangeType: RangeType, date: Date): Date {
switch (rangeType) {
Expand Down

0 comments on commit 3773e9d

Please sign in to comment.