mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[react-bootstrap-table-next] fix cell align type
This commit is contained in:
17
types/react-bootstrap-table-next/index.d.ts
vendored
17
types/react-bootstrap-table-next/index.d.ts
vendored
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user