carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.52k stars 1.75k forks source link

[Bug]: OverflowMenu types not exported despite being in changelog #16493

Open patrikhermansson opened 2 weeks ago

patrikhermansson commented 2 weeks ago

Package

@carbon/react

Browser

Chrome, Safari, Firefox, Edge

Package version

v11.57.0

React version

v18

Description

The v11.57.0 changelog says that OverflowMenu now has typescript types (https://github.com/carbon-design-system/carbon/pull/16134). However they are not exported in the actual module. The component is not faulty in any other way and works like before, just missing types.

Reproduction/example

None

Steps to reproduce

Use in editor with typescript support

Suggested Severity

None

Application/PAL

No response

Code of Conduct

Gururajj77 commented 1 week ago

Hey There, as of #16494 , we have exported the OverflowMenuProps, you can access them now. Please let me know if you are still not seeing it

patrikhermansson commented 1 week ago

I see! It's useful but doesn't work as you'd expect compared to other components in this library, the OverflowMenu component itself is exported now but is untyped. So you can use any props on it and it'll pass typecheck.