[react-bootstrap-table-next] fix cell align type

This commit is contained in:
Wlad Meixner
2020-03-15 21:03:06 +01:00
parent 6a596cfb29
commit bc315cff97

View File

@@ -31,14 +31,12 @@ export type FilterPosition =
/**
* Table change event types
*/
export enum TableChangeType {
filter = 'filter',
pagination = 'pagination',
sort = 'sort',
cellEdit = 'cellEdit',
}
export type TableChangeType = 'filter' | 'pagination' | 'sort' | 'cellEdit';
export type CellAlignment = 'left' | 'center' | 'right' | 'start' | 'end' | string;
/**
* Used to specify the text alignment for a column.
*/
export type CellAlignment = ('left' | 'center' | 'right' | 'start' | 'end') | string;
/**
* Filter comparators used for table filters
@@ -58,11 +56,6 @@ declare enum FilterComparator {
*/
export type SortOrder = 'asc' | 'desc';
/**
* Used to specify the text alignment for a column.
*/
export type DataAlignType = 'left' | 'center' | 'right' | 'start' | 'end';
export type ColumnSortFunc<T, E extends keyof T = any> = (
a: T[E],
b: T[E],