@formatjs/intl-locale 4.2.6 → 4.2.7

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
@@ -28,7 +28,7 @@ export declare class Locale {
28
28
  get baseName(): string;
29
29
  get calendar(): string | undefined;
30
30
  get collation(): string | undefined;
31
- get caseFirst(): "upper" | "lower" | "false" | undefined;
31
+ get caseFirst(): 'upper' | 'lower' | 'false' | undefined;
32
32
  get numeric(): boolean | undefined;
33
33
  get numberingSystem(): string | undefined;
34
34
  /**
@@ -44,7 +44,7 @@ export declare class Locale {
44
44
  */
45
45
  get region(): string | undefined;
46
46
  get firstDayOfWeek(): string | undefined;
47
- get hourCycle(): "h11" | "h12" | "h23" | "h24" | undefined;
47
+ get hourCycle(): 'h11' | 'h12' | 'h23' | 'h24' | undefined;
48
48
  /**
49
49
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
50
50
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
@@ -74,13 +74,30 @@ export declare class Locale {
74
74
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
75
75
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
76
76
  */
77
- getTextInfo(): any;
77
+ getTextInfo(): {
78
+ direction: string;
79
+ };
78
80
  /**
79
81
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
80
82
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
81
83
  */
82
- getWeekInfo(): any;
83
- static relevantExtensionKeys: readonly ["ca", "co", "hc", "kf", "kn", "nu", "fw"];
84
+ getWeekInfo(): {
85
+ firstDay: string;
86
+ weekend: {
87
+ start: string;
88
+ end: string;
89
+ };
90
+ minimalDays: number;
91
+ };
92
+ static relevantExtensionKeys: readonly [
93
+ 'ca',
94
+ 'co',
95
+ 'hc',
96
+ 'kf',
97
+ 'kn',
98
+ 'nu',
99
+ 'fw'
100
+ ];
84
101
  static readonly polyfilled = true;
85
102
  }
86
103
  export default Locale;
package/lib/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare class Locale {
28
28
  get baseName(): string;
29
29
  get calendar(): string | undefined;
30
30
  get collation(): string | undefined;
31
- get caseFirst(): "upper" | "lower" | "false" | undefined;
31
+ get caseFirst(): 'upper' | 'lower' | 'false' | undefined;
32
32
  get numeric(): boolean | undefined;
33
33
  get numberingSystem(): string | undefined;
34
34
  /**
@@ -44,7 +44,7 @@ export declare class Locale {
44
44
  */
45
45
  get region(): string | undefined;
46
46
  get firstDayOfWeek(): string | undefined;
47
- get hourCycle(): "h11" | "h12" | "h23" | "h24" | undefined;
47
+ get hourCycle(): 'h11' | 'h12' | 'h23' | 'h24' | undefined;
48
48
  /**
49
49
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
50
50
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
@@ -74,13 +74,30 @@ export declare class Locale {
74
74
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
75
75
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
76
76
  */
77
- getTextInfo(): any;
77
+ getTextInfo(): {
78
+ direction: string;
79
+ };
78
80
  /**
79
81
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
80
82
  * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
81
83
  */
82
- getWeekInfo(): any;
83
- static relevantExtensionKeys: readonly ["ca", "co", "hc", "kf", "kn", "nu", "fw"];
84
+ getWeekInfo(): {
85
+ firstDay: string;
86
+ weekend: {
87
+ start: string;
88
+ end: string;
89
+ };
90
+ minimalDays: number;
91
+ };
92
+ static relevantExtensionKeys: readonly [
93
+ 'ca',
94
+ 'co',
95
+ 'hc',
96
+ 'kf',
97
+ 'kn',
98
+ 'nu',
99
+ 'fw'
100
+ ];
84
101
  static readonly polyfilled = true;
85
102
  }
86
103
  export default Locale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-locale",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "Intl.Locale polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "tslib": "2",
28
- "@formatjs/ecma402-abstract": "2.2.5",
29
- "@formatjs/intl-enumerator": "1.8.5",
30
- "@formatjs/intl-getcanonicallocales": "2.5.3"
28
+ "@formatjs/ecma402-abstract": "2.3.0",
29
+ "@formatjs/intl-enumerator": "1.8.6",
30
+ "@formatjs/intl-getcanonicallocales": "2.5.4"
31
31
  }
32
32
  }