diff --git a/types/ui-grid/index.d.ts b/types/ui-grid/index.d.ts index 7d646dbbf8..ca8663ce38 100644 --- a/types/ui-grid/index.d.ts +++ b/types/ui-grid/index.d.ts @@ -3799,7 +3799,7 @@ declare namespace uiGrid { * If suppressRemoveSort is also set, the unsorted state will be skipped even if it is listed here. Each direction may * not appear in the list more than once (e.g. [ASC, DESC, DESC] is not allowed), and the list may not be empty.* */ - sortDirectionCycle?: Array; + sortDirectionCycle?: Array; /** * Algorithm to use for sorting this column. Takes 'a' and 'b' parameters * like any normal sorting function with additional 'rowA', 'rowB', and 'direction' diff --git a/types/ui-grid/ui-grid-tests.ts b/types/ui-grid/ui-grid-tests.ts index 2426dbfe54..06f18384a5 100644 --- a/types/ui-grid/ui-grid-tests.ts +++ b/types/ui-grid/ui-grid-tests.ts @@ -93,6 +93,7 @@ columnDef.sort = { priority: 1 }; columnDef.sortCellFiltered = false; +columnDef.sortDirectionCycle = [null, 'asc' , 'desc']; columnDef.sortingAlgorithm = (a: any, b: any, rowA: uiGrid.IGridRowOf, rowB: uiGrid.IGridRowOf, direction: string) => { return -1; };