From bc315cff970444c6d22fc8fc7c087a4eba3c2fef Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Sun, 15 Mar 2020 21:03:06 +0100 Subject: [PATCH] [react-bootstrap-table-next] fix cell align type --- types/react-bootstrap-table-next/index.d.ts | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/types/react-bootstrap-table-next/index.d.ts b/types/react-bootstrap-table-next/index.d.ts index 6538dec43e..1f371cf866 100644 --- a/types/react-bootstrap-table-next/index.d.ts +++ b/types/react-bootstrap-table-next/index.d.ts @@ -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 = ( a: T[E], b: T[E],