react-popper-tooltip
react-popper-tooltip copied to clipboard
Type check error with Typescript 4.4 exactOptionalPropertyTypes
Describe the bug Applying getTooltipProps on a div gives an error with Typescript 4.4 when the (recommended) new option exactOptionalPropertyTypes is set.
To Reproduce Steps to reproduce the behavior:
- Upgrade Typescript to 4.4.
- Add:
"exactOptionalPropertyTypes": true,to tsconfig.json - Style a
divwith{...getTooltipProps(...)}
Expected behavior No type check error
Screenshots

Desktop (please complete the following information):
- Windows 10
- Newest chrome
i'm facing a similar issue, see #144 .
were you be able to know what was happening?
I had to disable the Typescript error :) Hopefully the author looks into it.
// Todo: remove after bug is fixed: https://github.com/mohsinulhaq/react-popper-tooltip/issues/140
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Hi, could you please check if this same happens with v4.4.0?
@mohsinulhaq: Sorry only saw this now :) Yes, the error went away. I am using 4.4.2 now.
@gunters63 great, thanks!