intl-messageformat-parser
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -1,2 +0,1 @@ | ||
import { NumberFormatOptions } from '@formatjs/intl-numberformat'; | ||
@@ -124,2 +123,41 @@ export declare type ArgumentElement = BaseElement<TYPE.argument>; | ||
declare interface NumberFormatDigitOptions { | ||
minimumIntegerDigits?: number; | ||
minimumSignificantDigits?: number; | ||
maximumSignificantDigits?: number; | ||
minimumFractionDigits?: number; | ||
maximumFractionDigits?: number; | ||
} | ||
declare type NumberFormatNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
declare type NumberFormatOptions = Intl.NumberFormatOptions & NumberFormatDigitOptions & { | ||
localeMatcher?: NumberFormatOptionsLocaleMatcher; | ||
style?: NumberFormatOptionsStyle; | ||
compactDisplay?: NumberFormatOptionsCompactDisplay; | ||
currencyDisplay?: NumberFormatOptionsCurrencyDisplay; | ||
currencySign?: NumberFormatOptionsCurrencySign; | ||
notation?: NumberFormatOptionsNotation; | ||
signDisplay?: NumberFormatOptionsSignDisplay; | ||
unit?: string; | ||
unitDisplay?: NumberFormatOptionsUnitDisplay; | ||
numberingSystem?: string; | ||
}; | ||
declare type NumberFormatOptionsCompactDisplay = 'short' | 'long'; | ||
declare type NumberFormatOptionsCurrencyDisplay = 'symbol' | 'code' | 'name' | 'narrowSymbol'; | ||
declare type NumberFormatOptionsCurrencySign = 'standard' | 'accounting'; | ||
declare type NumberFormatOptionsLocaleMatcher = 'lookup' | 'best fit'; | ||
declare type NumberFormatOptionsNotation = NumberFormatNotation; | ||
declare type NumberFormatOptionsSignDisplay = 'auto' | 'always' | 'never' | 'exceptZero'; | ||
declare type NumberFormatOptionsStyle = 'decimal' | 'percent' | 'currency' | 'unit'; | ||
declare type NumberFormatOptionsUnitDisplay = 'long' | 'short' | 'narrow'; | ||
export declare interface NumberSkeleton { | ||
@@ -126,0 +164,0 @@ type: SKELETON_TYPE.number; |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@formatjs/intl-numberformat": "^5.2.0" | ||
"@formatjs/intl-numberformat": "^5.2.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "homepage": "https://github.com/formatjs/formatjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291965
7990