Skip to content

Commit

Permalink
refactor: update number formatting types
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 1, 2024
1 parent 7cac44a commit 7e6ae81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@poppinss/intl-formatter": "^3.0.2",
"@poppinss/intl-formatter": "^3.0.3",
"@poppinss/utils": "^6.7.3",
"intl-messageformat": "^10.5.14",
"luxon": "^3.4.4",
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
export type NumberFormatOptions = Intl.NumberFormatOptions & {
style?: 'decimal' | 'currency' | 'percent' | 'unit'
unitDisplay?: 'long' | 'short' | 'narrow'
signDisplay?: 'auto' | 'never' | 'always' | 'exceptZero'
signDisplay?: 'auto' | 'always' | 'never' | 'exceptZero' | 'negative'
notation?: 'standard' | 'scientific' | 'engineering' | 'compact'
localeMatcher?: 'best fit' | 'lookup'
currencySign?: 'accounting' | 'standard'
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name'
compactDisplay?: 'short' | 'long'
useGrouping: 'min2' | 'auto' | 'always' | boolean
}

/**
Expand Down

0 comments on commit 7e6ae81

Please sign in to comment.