Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Jun 3, 2023
1 parent aa90c79 commit 189acf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ GridHeaderFilterAdornment.propTypes = {
}).isRequired,
operators: PropTypes.arrayOf(
PropTypes.shape({
getApplyFilterFn: PropTypes.func.isRequired,
getApplyFilterFn: PropTypes.func,
getValueAsString: PropTypes.func,
headerLabel: PropTypes.string,
InputComponent: PropTypes.elementType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ GridHeaderFilterCell.propTypes = {
colIndex: PropTypes.number.isRequired,
filterOperators: PropTypes.arrayOf(
PropTypes.shape({
getApplyFilterFn: PropTypes.func.isRequired,
getApplyFilterFn: PropTypes.func,
getValueAsString: PropTypes.func,
headerLabel: PropTypes.string,
InputComponent: PropTypes.elementType,
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/x-data-grid/src/models/gridFilterOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ApplyFilterInterface<R extends GridValidRowModel = any, V = any, F = V> =
* @param {GridColDef} column The column from which we want to filter the rows.
* @returns {null | ((params: GridCellParams) => boolean)} The function to call to check if a row pass this filter item or not.
*/
getApplyFilterFn: (
getApplyFilterFn?: (
filterItem: GridFilterItem,
column: GridColDef<R, V, F>,
) => null | ((params: GridCellParams<R, V, F>) => boolean);
Expand All @@ -34,7 +34,7 @@ type ApplyFilterInterface<R extends GridValidRowModel = any, V = any, F = V> =
* @param {GridColDef} column The column from which we want to filter the rows.
* @returns {null | ((value: V, row: R, column: GridColDef<R, V, F>) => boolean)} The function to call to check if a row pass this filter item or not.
*/
getApplyFilterFnV7: (
getApplyFilterFnV7?: (
filterItem: GridFilterItem,
column: GridColDef<R, V, F>,
) => null | GridApplyFilterV7<R, V, F>;
Expand Down

0 comments on commit 189acf0

Please sign in to comment.