@formatjs/intl-durationformat 0.13.0 → 0.13.2
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/index.d.ts +4 -1
- package/index.js +493 -198
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/polyfill-force.js +509 -204
- package/polyfill-force.js.map +1 -1
- package/polyfill.js +510 -205
- package/polyfill.js.map +1 -1
- package/should-polyfill.js +1 -1
- package/should-polyfill.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare const nullClassBase: abstract new () => object;
|
|
1
2
|
interface DurationInput {
|
|
2
3
|
years?: number;
|
|
3
4
|
months?: number;
|
|
@@ -79,6 +80,8 @@ interface IntlDurationFormatInternal {
|
|
|
79
80
|
initializedDurationFormat: boolean;
|
|
80
81
|
fractionalDigits: number | undefined;
|
|
81
82
|
dataLocale: string;
|
|
83
|
+
hourMinuteSeparator: string;
|
|
84
|
+
minuteSecondSeparator: string;
|
|
82
85
|
locale: string;
|
|
83
86
|
numberingSystem: string;
|
|
84
87
|
style: DurationFormatOptions["style"];
|
|
@@ -117,7 +120,7 @@ interface DurationFormatConstructor {
|
|
|
117
120
|
* DurationFormat provides locale-sensitive duration formatting
|
|
118
121
|
* Implements the Intl.DurationFormat API from the TC39 proposal
|
|
119
122
|
*/
|
|
120
|
-
export declare class DurationFormat implements DurationFormat$1 {
|
|
123
|
+
export declare class DurationFormat extends nullClassBase implements DurationFormat$1 {
|
|
121
124
|
static __addTemporalNamespace(namespace: TemporalDurationNamespace): void;
|
|
122
125
|
constructor(locales?: string | string[], options?: DurationFormatOptions);
|
|
123
126
|
resolvedOptions(): ResolvedDurationFormatOptions;
|