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: unit => t
makeWithLocale
RESCRIPT
let makeWithLocale: string => t
makeWithLocales
RESCRIPT
let makeWithLocales: array<string> => t
makeWithLocaleAndOptions
RESCRIPT
let makeWithLocaleAndOptions: (string, options) => t
makeWithLocalesAndOptions
RESCRIPT
let makeWithLocalesAndOptions: (array<string>, options) => t
makeWithOptions
RESCRIPT
let makeWithOptions: options => t
supportedLocalesOf
RESCRIPT
let supportedLocalesOf: array<string> => t
supportedLocalesOfWithOptions
RESCRIPT
let supportedLocalesOfWithOptions: (array<string>, 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>