-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AG Grid interface to use string union type
- Loading branch information
1 parent
4e5a41a
commit 23dbcf1
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
libs/components/ag-grid/src/lib/modules/ag-grid/types/currency-properties.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import AutoNumeric from 'autonumeric'; | ||
|
||
export interface SkyAgGridCurrencyProperties { | ||
currencySymbol?: string; | ||
decimalPlaces?: number | string; | ||
negativeBracketsTypeOnBlur?: AutoNumeric.NegativeBracketsTypeOnBlurOption | null; | ||
// Satisfies AutoNumeric.NegativeBracketsTypeOnBlurOption | ||
negativeBracketsTypeOnBlur?: | ||
| '(,)' | ||
| '[,]' | ||
| '<,>' | ||
| '{,}' | ||
| '〈,〉' | ||
| '「,」' | ||
| '⸤,⸥' | ||
| '⟦,⟧' | ||
| '‹,›' | ||
| '«,»' | ||
| null; | ||
} |