From 811f95e8ffe10a6dfe765655bdaa5debb10d22a2 Mon Sep 17 00:00:00 2001 From: MEDHAT-ALHADDAD Date: Thu, 27 Oct 2022 13:53:51 +0200 Subject: [PATCH] update options for Intl.NumberFormat --- src/ReactIntl.res | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ReactIntl.res b/src/ReactIntl.res index 12537a6..a3fa1e6 100644 --- a/src/ReactIntl.res +++ b/src/ReactIntl.res @@ -19,7 +19,10 @@ type timeUnit = [#second | #minute | #hour | #day | #week | #month | #quarter | type relativeTimeNumeric = [#always | #auto] type numberStyle = [#decimal | #currency | #percent] +type compactDisplay = [#long | #short] type currencyDisplay = [#symbol | #code | #name] +type notation = [#standard | #scientific | #engineering | #compact] +type signDisplay = [#auto | #always | #negative | #never | #exceptZero] type listStyle = [#long | #short | #narrow] type listType = [#disjunction | #conjunction | #unit] @@ -65,8 +68,12 @@ type numberFormatOptions external numberFormatOptions: ( ~localeMatcher: localeMatcher=?, ~style: numberStyle=?, + ~compactDisplay: compactDisplay=?, ~currency: string=?, ~currencyDisplay: currencyDisplay=?, + ~notation: notation=?, + ~currencySign: string=?, + ~signDisplay: signDisplay=?, ~useGrouping: bool=?, ~minimumIntegerDigits: int=?, ~minimumFractionDigits: int=?, @@ -339,8 +346,12 @@ module FormattedNumber = { ~value: float, ~localeMatcher: localeMatcher=?, ~style: numberStyle=?, + ~compactDisplay: compactDisplay=?, ~currency: string=?, ~currencyDisplay: currencyDisplay=?, + ~notation: notation=?, + ~currencySign: string=?, + ~signDisplay: signDisplay=?, ~useGrouping: bool=?, ~minimumIntegerDigits: int=?, ~minimumFractionDigits: int=?,