diff --git a/types/carbon-components-react/lib/components/UIShell/SideNavLink.d.ts b/types/carbon-components-react/lib/components/UIShell/SideNavLink.d.ts index c3a1e9025c..6e1b075488 100644 --- a/types/carbon-components-react/lib/components/UIShell/SideNavLink.d.ts +++ b/types/carbon-components-react/lib/components/UIShell/SideNavLink.d.ts @@ -1,6 +1,7 @@ import * as React from "react"; import { ReactAttr, + ReactAnchorAttr, RenderIconProps, RequiresChildrenProps, SideNavSharedProps, @@ -19,13 +20,13 @@ interface InheritedProps extends export interface SideNavLinkPropsBase extends InheritedProps { } -export type SideNavLinkProps = LinkProps & SideNavLinkPropsBase; +export type SideNavLinkProps = LinkProps & SideNavLinkPropsBase; declare interface SideNavLinkFC extends React.FC> { } export declare function createCustomSideNavLink( element: SideNavLinkProps['element'] ): SideNavLinkFC>; -declare function SideNavLink(props: React.PropsWithChildren>): React.ReactElement | null; +declare function SideNavLink(props: React.PropsWithChildren>): React.ReactElement | null; export default SideNavLink; diff --git a/types/carbon-components-react/lib/components/UIShell/SideNavMenuItem.d.ts b/types/carbon-components-react/lib/components/UIShell/SideNavMenuItem.d.ts index a5591a0875..40952a4528 100644 --- a/types/carbon-components-react/lib/components/UIShell/SideNavMenuItem.d.ts +++ b/types/carbon-components-react/lib/components/UIShell/SideNavMenuItem.d.ts @@ -1,5 +1,5 @@ import * as React from "react"; -import { ReactAttr } from "../../../typings/shared"; +import { ReactAttr, ReactAnchorAttr } from "../../../typings/shared"; import { LinkProps } from "./Link"; interface InheritedProps { @@ -11,8 +11,8 @@ export interface SideNavMenuItemPropsBase extends InheritedProps { isActive?: boolean, } -export type SideNavMenuItemProps = LinkProps & SideNavMenuItemPropsBase; +export type SideNavMenuItemProps = LinkProps & SideNavMenuItemPropsBase; -declare function SideNavMenuItem(props: React.PropsWithChildren>, ref: React.Ref): React.ReactElement | null; +declare function SideNavMenuItem(props: React.PropsWithChildren>, ref: React.Ref): React.ReactElement | null; export default SideNavMenuItem;