Skip to content

Commit

Permalink
Update packages/docusaurus-theme-classic/src/theme/NavbarItem/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
slorber and Josh-Cena authored Apr 29, 2022
1 parent e29be37 commit 2a05d0b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <NavbarItemComponent {...props} />;
return <NavbarItemComponent {...(props as never)} />;
}

0 comments on commit 2a05d0b

Please sign in to comment.