ListFormat
t
RESCRIPT
type t
listType
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=?) => t
supportedLocalesOf
RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => t
resolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptions
format
RESCRIPT
let format: (t, array<string>) => string
formatToParts
RESCRIPT
let formatToParts: (t, array<string>) => array<listPart>