@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.
Files changed (2) hide show
  1. package/index.d.ts +35 -35
  2. 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
- * 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
- */
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
- * 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
- */
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
- * 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
- */
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
- * 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
- */
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
- * 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
- */
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
- * 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
- */
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.11",
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.11"
32
+ "@formatjs/intl-localematcher": "0.8.13"
33
33
  }
34
34
  }