TypeDefinitions for PluginMoreMenuItem (and all Plugin*MenuItem) components do not include children #67091
Open
2 of 6 tasks
Labels
[Type] Bug
An existing feature does not function as intended
Description
Trying to build a plugin that adds an item to the "More" menu via the PluginMoreMenuItem component using versions of the editor package that export their own type definitions for the components sub-package (14.11.0 and higher) results in the error:
Property 'children' does not exist on type 'IntrinsicAttributes & { href?: string | undefined; icon?: any; onClick?: Function | undefined; other?: any[] | undefined; }'.
The error is caused by the JSDoc for PluginMoreMenuItem (and the other Plugin*MenuItem components) missing the
* @param {Element} props.children Children to be rendered
line included in the Plugin* components that are not MenuItems (I copied that line specifically from PluginPostPublishPanel).Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
The issue is with the build process, so plugins, WP version, etc aren't relevant. The only relevant version is "@wordpress/editor", which must be version 14.11.0 or higher.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: