Skip to content

Commit aa41e16

Browse files
committed
chore: fix TS errors
1 parent 252df83 commit aa41e16

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/HoverMenu.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const HoverMenu: React.ComponentType<MenuProps> = React.forwardRef(
99
const paperSlotProps = React.useMemo(() => {
1010
const wrapped = props.slotProps?.paper
1111
if (wrapped instanceof Function) {
12-
// eslint-disable-next-line @typescript-eslint/ban-types
13-
return (ownerProps: {}) => {
12+
return (ownerProps: Parameters<typeof wrapped>[0]) => {
1413
const base = wrapped(ownerProps)
1514
return {
1615
...base,

src/HoverPopover.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const HoverPopover: React.ComponentType<PopoverProps> = React.forwardRef(
99
const paperSlotProps = React.useMemo(() => {
1010
const wrapped = props.slotProps?.paper
1111
if (wrapped instanceof Function) {
12-
// eslint-disable-next-line @typescript-eslint/ban-types
13-
return (ownerProps: {}) => {
12+
return (ownerProps: Parameters<typeof wrapped>[0]) => {
1413
const base = wrapped(ownerProps)
1514
return {
1615
...base,

0 commit comments

Comments
 (0)