Skip to content

Commit

Permalink
Update AG Grid interface to use string union type
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhwhite committed Jan 30, 2024
1 parent 4e5a41a commit 23dbcf1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 1 addition & 2 deletions libs/components/ag-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"@skyux/popovers": "0.0.0-PLACEHOLDER",
"@skyux/theme": "0.0.0-PLACEHOLDER",
"ag-grid-angular": "^29.3.5",
"ag-grid-community": "^29.3.5",
"autonumeric": "^4.10.4"
"ag-grid-community": "^29.3.5"
},
"dependencies": {
"tslib": "^2.6.2"
Expand Down
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;
}

0 comments on commit 23dbcf1

Please sign in to comment.