inviton-powerduck 0.0.191 → 0.0.192
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.
|
@@ -121,7 +121,7 @@ export default class DateLocalizationUtils {
|
|
|
121
121
|
}
|
|
122
122
|
})();
|
|
123
123
|
|
|
124
|
-
static formatRange = (from: Temporal.PlainDateTime, to: Temporal.PlainDateTime): string => {
|
|
124
|
+
static formatRange = (from: Temporal.PlainDateTime | Temporal.PlainDate, to: Temporal.PlainDateTime | Temporal.PlainDate): string => {
|
|
125
125
|
if (from.month == to.month) {
|
|
126
126
|
// eslint-disable-next-line no-restricted-syntax
|
|
127
127
|
const convertDate = new Date(Date.UTC(
|
|
@@ -201,7 +201,7 @@ export default class DateLocalizationUtils {
|
|
|
201
201
|
};
|
|
202
202
|
|
|
203
203
|
private static getFormatted = (
|
|
204
|
-
dte: Temporal.PlainDateTime,
|
|
204
|
+
dte: Temporal.PlainDateTime | Temporal.PlainDate,
|
|
205
205
|
pattern: string,
|
|
206
206
|
day: 'numeric' | '2-digit' | undefined,
|
|
207
207
|
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | undefined,
|