Skip to content

OverlayTrigger namespace propTypes does not match the OverlayTriggerProps interface #6708

Closed
@snstanton

Description

@snstanton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions