From 7e6ae81a33d65552311c95c5833b24aafeef8007 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Thu, 1 Aug 2024 11:26:28 +0530 Subject: [PATCH] refactor: update number formatting types --- package.json | 2 +- src/types.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3a8305b..1c61a64 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/types.ts b/src/types.ts index 2909e2e..7668945 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 } /**