Skip to content

Commit

Permalink
refactor(grid-core): reuse SortingDirection (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
lookfirst authored and MaximKudriavtsev committed Sep 24, 2019
1 parent f5b45bd commit 8f869a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/dx-grid-core/src/types/sorting.types.ts
Expand Up @@ -3,15 +3,15 @@ import { GridColumnExtension } from './table.types';
import { Row, GetCellValueFn, IsSpecificRowFn, GetRowLevelKeyFn } from './grid-core.types';
import { CompareFn } from './merge-sort.types';

export type SortingDirection = 'asc' | 'desc';
/** Describes the sorting applied to a column */
export interface Sorting {
/** Specifies a column's name to which the sorting is applied. */
columnName: string;
/** Specifies a column's sorting order. */
direction: 'asc' | 'desc';
direction: SortingDirection;
}

export type SortingDirection = 'asc' | 'desc';
/** @internal */
export type SortingColumnExtension = GridColumnExtension & { sortingEnabled?: boolean };
/** @internal */
Expand Down
3 changes: 2 additions & 1 deletion packages/dx-react-grid/api/dx-react-grid.api.md
Expand Up @@ -580,7 +580,7 @@ export interface SelectionStateProps {
// @public
export interface Sorting {
columnName: string;
direction: 'asc' | 'desc';
direction: SortingDirection;
}

// @public (undocumented)
Expand Down Expand Up @@ -1350,3 +1350,4 @@ export interface VirtualTableStateProps {
// (No @packageDocumentation comment for this package)

```

0 comments on commit 8f869a7

Please sign in to comment.