diff --git a/components/menu/__tests__/__snapshots__/index.test.js.snap b/components/menu/__tests__/__snapshots__/index.test.js.snap
index 724f5ab99f..8f2d757367 100644
--- a/components/menu/__tests__/__snapshots__/index.test.js.snap
+++ b/components/menu/__tests__/__snapshots__/index.test.js.snap
@@ -162,6 +162,167 @@ Array [
]
`;
+exports[`Menu all types must be available in the "items" syntax 1`] = `
+Array [
+
,
+ ,
+]
+`;
+
exports[`Menu rtl render component should be rendered correctly in RTL direction 1`] = `
Array [
{
expect(wrapper.exists('.bamboo')).toBeTruthy();
});
+
+ it('all types must be available in the "items" syntax', () => {
+ const wrapper = mount(
+
,
+ );
+
+ expect(wrapper.render()).toMatchSnapshot();
+ });
});
diff --git a/components/menu/__tests__/type.test.tsx b/components/menu/__tests__/type.test.tsx
new file mode 100644
index 0000000000..cf3ce5916d
--- /dev/null
+++ b/components/menu/__tests__/type.test.tsx
@@ -0,0 +1,40 @@
+import * as React from 'react';
+import Menu from '..';
+
+describe('Menu.typescript', () => {
+ it('Menu.items', () => {
+ const menu = (
+
+ );
+
+ expect(menu).toBeTruthy();
+ });
+});
diff --git a/components/menu/hooks/useItems.tsx b/components/menu/hooks/useItems.tsx
index 5b33d8236f..e558dd8243 100644
--- a/components/menu/hooks/useItems.tsx
+++ b/components/menu/hooks/useItems.tsx
@@ -23,7 +23,7 @@ interface SubMenuType extends Omit {
}
interface MenuItemGroupType extends Omit {
- children?: MenuItemType[];
+ children?: ItemType[];
key?: React.Key;
}