Skip to content

Commit cbb8719

Browse files
committed
fix(@formatjs/intl-listformat): fix API docs, fix #2716
1 parent 62ade76 commit cbb8719

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

packages/intl-listformat/index.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,26 @@ export interface IntlListFormatOptions {
4343

4444
export interface ResolvedIntlListFormatOptions {
4545
/**
46-
* The BCP 47 language tag for the locale actually used.
47-
* If any Unicode extension values were requested in the
48-
* input BCP 47 language tag that led to this locale,
49-
* the key-value pairs that were requested and are
50-
* supported for this locale are included in locale.
46+
* A string with a BCP 47 language tag, or an array of such strings.
47+
* For the general form and interpretation of the locales argument,
48+
* see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
5149
*/
5250
locale: string
5351
/**
54-
* The format of output message. Possible values are:
55-
* - "always" (default, e.g., 1 day ago),
56-
* - or "auto" (e.g., yesterday).
57-
* The "auto" value allows to not always have to
58-
* use numeric values in the output.
52+
* The format of output message.
53+
* Possible values are :
54+
* - "conjunction" that stands for "and"-based lists (default, e.g., "A, B, and C")
55+
* - "disjunction" that stands for "or"-based lists (e.g., "A, B, or C").
56+
* - "unit" stands for lists of values with units (e.g., "5 pounds, 12 ounces").
5957
*/
6058
type: 'conjunction' | 'disjunction' | 'unit'
6159
/**
62-
* The length of the internationalized message. Possible values are:
63-
* - "long" (default, e.g., in 1 month)
64-
* - "short" (e.g., in 1 mo.),
65-
* - or "narrow" (e.g., in 1 mo.).
66-
* The narrow style could be similar to the short style for some locales.
60+
* The length of the formatted message.
61+
* Possible values are:
62+
* - "long" (default, e.g., "A, B, and C");
63+
* - "short" (e.g., "A, B, C"), or
64+
* - "narrow" (e.g., "A B C").
65+
* When style is "short" or "narrow", "unit" is the only allowed value for the type option.
6766
*/
6867
style: 'long' | 'short' | 'narrow'
6968
}

0 commit comments

Comments
 (0)