ListFormat
t
RESCRIPT
type tlistType
RESCRIPT
type listType = [#conjunction | #disjunction | #unit]style
RESCRIPT
type style = [#long | #narrow | #short]options
RESCRIPT
type options = {
localeMatcher?: Core__Intl__Common.localeMatcher,
\"type"?: listType,
style?: style,
}listPartComponentType
RESCRIPT
type listPartComponentType = [#element | #literal]listPart
RESCRIPT
type listPart = {
\"type": listPartComponentType,
value: string,
}resolvedOptions
RESCRIPT
type resolvedOptions = {
locale: string,
style: style,
\"type": listType,
}supportedLocalesOptions
RESCRIPT
type supportedLocalesOptions = {
localeMatcher: Core__Intl__Common.localeMatcher,
}make
RESCRIPT
let make: (~locales: array<string>=?, ~options: options=?) => tsupportedLocalesOf
RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => tresolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptionsformat
RESCRIPT
let format: (t, array<string>) => stringformatToParts
RESCRIPT
let formatToParts: (t, array<string>) => array<listPart>