diff --git a/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterInputSingleSelect.tsx b/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterInputSingleSelect.tsx index 1a4ad1914e814..c62a5beec5c67 100644 --- a/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterInputSingleSelect.tsx +++ b/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterInputSingleSelect.tsx @@ -4,15 +4,15 @@ import { TextFieldProps } from '@mui/material/TextField'; import { unstable_useId as useId } from '@mui/utils'; import MenuItem from '@mui/material/MenuItem'; import { GridFilterInputValueProps } from './GridFilterInputValueProps'; -import { GridSingleSelectColDef, ValueOptions } from '../../../models/colDef/gridColDef'; +import { GridSingleSelectColDef } from '../../../models/colDef/gridColDef'; import { useGridRootProps } from '../../../hooks/utils/useGridRootProps'; import { getValueFromValueOptions, isSingleSelectColDef } from './filterPanelUtils'; const renderSingleSelectOptions = ( { valueOptions, field }: GridSingleSelectColDef, OptionComponent: React.ElementType, - getOptionLabel: (value: ValueOptions) => string, - getOptionValue: (value: ValueOptions) => any, + getOptionLabel: NonNullable, + getOptionValue: NonNullable, ) => { const iterableColumnValues = typeof valueOptions === 'function' diff --git a/packages/grid/x-data-grid/src/components/panel/filterPanel/filterPanelUtils.ts b/packages/grid/x-data-grid/src/components/panel/filterPanel/filterPanelUtils.ts index 639caf97f50d1..8a7958af0c8b6 100644 --- a/packages/grid/x-data-grid/src/components/panel/filterPanel/filterPanelUtils.ts +++ b/packages/grid/x-data-grid/src/components/panel/filterPanel/filterPanelUtils.ts @@ -11,7 +11,7 @@ export function isSingleSelectColDef(colDef: GridColDef | null): colDef is GridS export function getValueFromValueOptions( value: string, valueOptions: any[] | undefined, - getOptionValue: (value: ValueOptions) => any, + getOptionValue: NonNullable, ) { if (valueOptions === undefined) { return undefined;