@bereasoftware/time-guard 2.5.4 → 2.6.0
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/dist/calendars/index.es.js +1 -1
- package/dist/plugins/advanced-format.es.js +1 -1
- package/dist/plugins/duration.es.js +1 -1
- package/dist/plugins/relative-time.es.js +1 -1
- package/dist/time-guard.cjs +1 -1
- package/dist/time-guard.cjs.map +1 -1
- package/dist/time-guard.es.js +38 -13
- package/dist/time-guard.es.js.map +1 -1
- package/dist/time-guard.iife.js +1 -1
- package/dist/time-guard.iife.js.map +1 -1
- package/dist/time-guard.umd.js +1 -1
- package/dist/time-guard.umd.js.map +1 -1
- package/dist/types/adapters/temporal.adapter.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -48,6 +48,14 @@ export declare class TemporalAdapter {
|
|
|
48
48
|
static isZonedDateTime(obj: unknown): obj is TemporalZonedDateTime;
|
|
49
49
|
static isPlainDate(obj: unknown): obj is any;
|
|
50
50
|
static isPlainTime(obj: unknown): obj is any;
|
|
51
|
+
/**
|
|
52
|
+
* Convert a value to a finite integer for Temporal fields
|
|
53
|
+
*/
|
|
54
|
+
private static toFiniteInteger;
|
|
55
|
+
/**
|
|
56
|
+
* Validate that a PlainDateTime has finite integer components
|
|
57
|
+
*/
|
|
58
|
+
private static validatePlainDateTime;
|
|
51
59
|
/**
|
|
52
60
|
* Get current time as PlainDateTime
|
|
53
61
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export declare class TimeGuard implements ITimeGuard {
|
|
|
124
124
|
valueOf(): number;
|
|
125
125
|
unix(): number;
|
|
126
126
|
toJSON(): string;
|
|
127
|
+
[Symbol.toPrimitive](hint: 'default' | 'string' | 'number'): string | number;
|
|
127
128
|
toString(): string;
|
|
128
129
|
locale(): string;
|
|
129
130
|
locale(locale: string): TimeGuard;
|