@naturalcycles/js-lib 14.233.0 → 14.233.1

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.
@@ -221,11 +221,11 @@ declare class LocalDateFactory {
221
221
  *
222
222
  * Similar to `localDate.orToday`, but that will instead return Today on falsy input.
223
223
  */
224
- orUndefined(d?: LocalDateInput | null): LocalDate | undefined;
224
+ orUndefined(d: LocalDateInput | null | undefined): LocalDate | undefined;
225
225
  /**
226
226
  * Creates a LocalDate from the input, unless it's falsy - then returns localDate.today.
227
227
  */
228
- orToday(d?: LocalDateInput | null): LocalDate;
228
+ orToday(d: LocalDateInput | null | undefined): LocalDate;
229
229
  }
230
230
  interface LocalDateFn extends LocalDateFactory {
231
231
  (d: LocalDateInput): LocalDate;
@@ -169,11 +169,11 @@ declare class LocalTimeFactory {
169
169
  *
170
170
  * `localTime` function will instead return LocalTime of `now` for falsy input.
171
171
  */
172
- orUndefined(d?: LocalTimeInput | null): LocalTime | undefined;
172
+ orUndefined(d: LocalTimeInput | null | undefined): LocalTime | undefined;
173
173
  /**
174
174
  * Creates a LocalTime from the input, unless it's falsy - then returns LocalTime.now
175
175
  */
176
- orNow(d?: LocalTimeInput | null): LocalTime;
176
+ orNow(d: LocalTimeInput | null | undefined): LocalTime;
177
177
  fromComponents(c: {
178
178
  year: number;
179
179
  month: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.233.0",
3
+ "version": "14.233.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build-prod": "build-prod-esm-cjs",
@@ -665,14 +665,14 @@ class LocalDateFactory {
665
665
  *
666
666
  * Similar to `localDate.orToday`, but that will instead return Today on falsy input.
667
667
  */
668
- orUndefined(d?: LocalDateInput | null): LocalDate | undefined {
668
+ orUndefined(d: LocalDateInput | null | undefined): LocalDate | undefined {
669
669
  return d ? this.of(d) : undefined
670
670
  }
671
671
 
672
672
  /**
673
673
  * Creates a LocalDate from the input, unless it's falsy - then returns localDate.today.
674
674
  */
675
- orToday(d?: LocalDateInput | null): LocalDate {
675
+ orToday(d: LocalDateInput | null | undefined): LocalDate {
676
676
  return d ? this.of(d) : this.today()
677
677
  }
678
678
  }
@@ -638,14 +638,14 @@ class LocalTimeFactory {
638
638
  *
639
639
  * `localTime` function will instead return LocalTime of `now` for falsy input.
640
640
  */
641
- orUndefined(d?: LocalTimeInput | null): LocalTime | undefined {
641
+ orUndefined(d: LocalTimeInput | null | undefined): LocalTime | undefined {
642
642
  return d ? this.of(d) : undefined
643
643
  }
644
644
 
645
645
  /**
646
646
  * Creates a LocalTime from the input, unless it's falsy - then returns LocalTime.now
647
647
  */
648
- orNow(d?: LocalTimeInput | null): LocalTime {
648
+ orNow(d: LocalTimeInput | null | undefined): LocalTime {
649
649
  return d ? this.of(d) : this.now()
650
650
  }
651
651