You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In OverlayTrigger.d.ts, the namespace OverlayTrigger declaration contains a var propTypes that does not match the OverlayTriggerProps declaration in the same file. The optional properties are declared as required in the namespace. This leads to type confusion in tools like the WebStorm IDE.
Expected behavior
The optional properties should be declared optional in the propTypes declaration.
…6709)
* Convert OverlayTrigger to an arrow function to fix type issues
Fixes#6708
* Use React.FC to suppress propTypes exports in the .d.ts file
Fix type mismatches
Fixes#6708
Prerequisites
Describe the bug
In OverlayTrigger.d.ts, the namespace OverlayTrigger declaration contains a var propTypes that does not match the OverlayTriggerProps declaration in the same file. The optional properties are declared as required in the namespace. This leads to type confusion in tools like the WebStorm IDE.
Expected behavior
The optional properties should be declared optional in the propTypes declaration.
To Reproduce
No response
Reproducible Example
https://codesandbox.io/s/beautiful-dream-lwcm96
Screenshots
No response
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of React-Bootstrap are you using?
2.9.0
What version of Bootstrap are you using?
5.3.2
Additional context
No response
The text was updated successfully, but these errors were encountered: