@formatjs/intl-durationformat 0.12.4 → 0.13.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.
package/index.d.ts CHANGED
@@ -61,6 +61,12 @@ interface DurationFormat$1 {
61
61
  formatToParts(duration: DurationInput | string): DurationFormatPart[];
62
62
  format(duration: DurationInput | string): string;
63
63
  }
64
+ interface TemporalDurationNamespace {
65
+ Duration: {
66
+ prototype: object;
67
+ from(value: string): object;
68
+ };
69
+ }
64
70
  interface RawDurationLocaleData {
65
71
  data: DurationFormatLocaleInternalData;
66
72
  locale: string;
@@ -112,6 +118,7 @@ interface DurationFormatConstructor {
112
118
  * Implements the Intl.DurationFormat API from the TC39 proposal
113
119
  */
114
120
  export declare class DurationFormat implements DurationFormat$1 {
121
+ static __addTemporalNamespace(namespace: TemporalDurationNamespace): void;
115
122
  constructor(locales?: string | string[], options?: DurationFormatOptions);
116
123
  resolvedOptions(): ResolvedDurationFormatOptions;
117
124
  formatToParts(duration: DurationInput | string): DurationFormatPart[];
@@ -123,5 +130,4 @@ export declare class DurationFormat implements DurationFormat$1 {
123
130
  static getDefaultLocale: () => string;
124
131
  static polyfilled: boolean;
125
132
  }
126
- export type { DurationFormatConstructor, DurationFormatLocaleInternalData, DurationFormatOptions, DurationFormatPart, DurationInput, DurationRecord, IntlDurationFormatInternal, RawDurationLocaleData, ResolvedDurationFormatOptions };
127
- //# sourceMappingURL=index.d.ts.map
133
+ export type { DurationFormatConstructor, DurationFormatLocaleInternalData, DurationFormatOptions, DurationFormatPart, DurationInput, DurationRecord, IntlDurationFormatInternal, RawDurationLocaleData, ResolvedDurationFormatOptions };