File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ const HoverMenu: React.ComponentType<MenuProps> = React.forwardRef(
9
9
const paperSlotProps = React . useMemo ( ( ) => {
10
10
const wrapped = props . slotProps ?. paper
11
11
if ( wrapped instanceof Function ) {
12
- // eslint-disable-next-line @typescript-eslint/ban-types
13
- return ( ownerProps : { } ) => {
12
+ return ( ownerProps : Parameters < typeof wrapped > [ 0 ] ) => {
14
13
const base = wrapped ( ownerProps )
15
14
return {
16
15
...base ,
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ const HoverPopover: React.ComponentType<PopoverProps> = React.forwardRef(
9
9
const paperSlotProps = React . useMemo ( ( ) => {
10
10
const wrapped = props . slotProps ?. paper
11
11
if ( wrapped instanceof Function ) {
12
- // eslint-disable-next-line @typescript-eslint/ban-types
13
- return ( ownerProps : { } ) => {
12
+ return ( ownerProps : Parameters < typeof wrapped > [ 0 ] ) => {
14
13
const base = wrapped ( ownerProps )
15
14
return {
16
15
...base ,
You can’t perform that action at this time.
0 commit comments