@fr0st/datetime 8.0.2 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -398,7 +398,7 @@ DateTime.clearDataCache();
398
398
 
399
399
  ```bash
400
400
  npm test
401
- npm run js-lint
401
+ npm run lint
402
402
  npm run build
403
403
  ```
404
404
 
@@ -141,7 +141,8 @@
141
141
  second: 60,
142
142
  };
143
143
 
144
- /** @typedef {import('./date-time.js').default} DateTime */
144
+ /** @import DateTime from './date-time.js' */
145
+
145
146
 
146
147
  /**
147
148
  * DateTime Helpers
@@ -3601,10 +3602,8 @@
3601
3602
 
3602
3603
  /**
3603
3604
  * Returns a copy with the hours changed in the current time zone.
3604
- * @param {number} hours The hours. (0-23)
3605
- * @param {number} [minutes] The minutes. (0-59)
3606
- * @param {number} [seconds] The seconds. (0-59)
3607
- * @param {number} [milliseconds] The milliseconds.
3605
+ * @param {...number} args The hours (0-23), optionally followed by minutes
3606
+ * (0-59), seconds (0-59), and milliseconds.
3608
3607
  * @returns {DateTime} A new DateTime instance.
3609
3608
  */
3610
3609
  withHours(...args) {
@@ -3640,9 +3639,8 @@
3640
3639
 
3641
3640
  /**
3642
3641
  * Returns a copy with the minutes changed in the current time zone.
3643
- * @param {number} minutes The minutes. (0-59)
3644
- * @param {number} [seconds] The seconds. (0-59)
3645
- * @param {number} [milliseconds] The milliseconds.
3642
+ * @param {...number} args The minutes (0-59), optionally followed by seconds
3643
+ * (0-59) and milliseconds.
3646
3644
  * @returns {DateTime} A new DateTime instance.
3647
3645
  */
3648
3646
  withMinutes(...args) {
@@ -3699,8 +3697,8 @@
3699
3697
 
3700
3698
  /**
3701
3699
  * Returns a copy with the seconds changed in the current time zone.
3702
- * @param {number} seconds The seconds. (0-59)
3703
- * @param {number} [milliseconds] The milliseconds.
3700
+ * @param {...number} args The seconds (0-59), optionally followed by
3701
+ * milliseconds.
3704
3702
  * @returns {DateTime} A new DateTime instance.
3705
3703
  */
3706
3704
  withSeconds(...args) {