@formatjs/intl-listformat 8.3.11 → 8.3.13
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 +35 -35
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -33,53 +33,53 @@ interface LiteralPart {
|
|
|
33
33
|
//#region packages/intl-listformat/index.d.ts
|
|
34
34
|
interface IntlListFormatOptions {
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
* The locale matching algorithm to use.
|
|
37
|
+
* Possible values are "lookup" and "best fit"; the default is "best fit".
|
|
38
|
+
* For information about this option, see
|
|
39
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.
|
|
40
|
+
*/
|
|
41
41
|
localeMatcher?: "best fit" | "lookup";
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
* The format of output message.
|
|
44
|
+
* Possible values are :
|
|
45
|
+
* - "conjunction" that stands for "and"-based lists (default, e.g., "A, B, and C")
|
|
46
|
+
* - "disjunction" that stands for "or"-based lists (e.g., "A, B, or C").
|
|
47
|
+
* - "unit" stands for lists of values with units (e.g., "5 pounds, 12 ounces").
|
|
48
|
+
*/
|
|
49
49
|
type?: "conjunction" | "disjunction" | "unit";
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
* The length of the formatted message.
|
|
52
|
+
* Possible values are:
|
|
53
|
+
* - "long" (default, e.g., "A, B, and C");
|
|
54
|
+
* - "short" (e.g., "A, B, C"), or
|
|
55
|
+
* - "narrow" (e.g., "A B C").
|
|
56
|
+
* When style is "short" or "narrow", "unit" is the only allowed value for the type option.
|
|
57
|
+
*/
|
|
58
58
|
style?: "long" | "short" | "narrow";
|
|
59
59
|
}
|
|
60
60
|
interface ResolvedIntlListFormatOptions {
|
|
61
61
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
* A string with a BCP 47 language tag, or an array of such strings.
|
|
63
|
+
* For the general form and interpretation of the locales argument,
|
|
64
|
+
* see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
|
|
65
|
+
*/
|
|
66
66
|
locale: string;
|
|
67
67
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
* The format of output message.
|
|
69
|
+
* Possible values are :
|
|
70
|
+
* - "conjunction" that stands for "and"-based lists (default, e.g., "A, B, and C")
|
|
71
|
+
* - "disjunction" that stands for "or"-based lists (e.g., "A, B, or C").
|
|
72
|
+
* - "unit" stands for lists of values with units (e.g., "5 pounds, 12 ounces").
|
|
73
|
+
*/
|
|
74
74
|
type: "conjunction" | "disjunction" | "unit";
|
|
75
75
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
* The length of the formatted message.
|
|
77
|
+
* Possible values are:
|
|
78
|
+
* - "long" (default, e.g., "A, B, and C");
|
|
79
|
+
* - "short" (e.g., "A, B, C"), or
|
|
80
|
+
* - "narrow" (e.g., "A B C").
|
|
81
|
+
* When style is "short" or "narrow", "unit" is the only allowed value for the type option.
|
|
82
|
+
*/
|
|
83
83
|
style: "long" | "short" | "narrow";
|
|
84
84
|
}
|
|
85
85
|
type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-listformat",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.13",
|
|
4
4
|
"description": "Formats JS list in a i18n-safe way",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"format",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"./should-polyfill.js": "./should-polyfill.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@formatjs/intl-localematcher": "0.8.
|
|
32
|
+
"@formatjs/intl-localematcher": "0.8.13"
|
|
33
33
|
}
|
|
34
34
|
}
|