diff --git a/packages/docusaurus-theme-classic/src/theme/NavbarItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/NavbarItem/index.tsx index d8e109fa48d5..7ae0d4990730 100644 --- a/packages/docusaurus-theme-classic/src/theme/NavbarItem/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NavbarItem/index.tsx @@ -34,6 +34,5 @@ export default function NavbarItem({type, ...props}: Props): JSX.Element { (props as DropdownNavbarItemProps).items !== undefined, ); const NavbarItemComponent = getNavbarItemComponent(componentType); - // @ts-expect-error: how to type this? - return ; + return ; }