mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update onFilterChange function signature (#39958)
Add type argument to onFilterChange function signature, which now accepts 3 arguments instead of 2. https://github.com/gregnb/mui-datatables
This commit is contained in:
parent
e7d0af6a9d
commit
78c8295f88
4
types/mui-datatables/index.d.ts
vendored
4
types/mui-datatables/index.d.ts
vendored
@ -11,7 +11,7 @@ import * as React from 'react';
|
||||
|
||||
export type Display = 'true' | 'false' | 'excluded';
|
||||
export type SortDirection = 'asc' | 'desc';
|
||||
export type FilterType = 'dropdown' | 'checkbox' | 'multiselect' | 'textField' | 'custom';
|
||||
export type FilterType = 'dropdown' | 'checkbox' | 'multiselect' | 'textField' | 'custom' | 'chip' | 'reset';
|
||||
export type Responsive = 'stacked' | 'scrollMaxHeight' | 'scrollFullHeight';
|
||||
export type SelectableRows = 'multiple' | 'single' | 'none';
|
||||
|
||||
@ -192,7 +192,7 @@ export interface MUIDataTableOptions {
|
||||
columns: any,
|
||||
data: any
|
||||
) => BlobPart;
|
||||
onFilterChange?: (changedColumn: string, filterList: any[]) => void;
|
||||
onFilterChange?: (changedColumn: string, filterList: any[], type: FilterType) => void;
|
||||
onFilterDialogOpen?: () => void;
|
||||
onFilterDialogClose?: () => void;
|
||||
onRowClick?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user