Skip to content

Commit 8be26bb

Browse files
committed
chore: Fix broken types as of v11
1 parent 3a7ee02 commit 8be26bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/header/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function NavMenu(props) {
225225
/**
226226
* Button that expands into a menu when clicked. Pass in label & menu items as children.
227227
*
228-
* @param {ExpandableNavLinkProps & import('preact').JSX.ButtonHTMLAttributes} props
228+
* @param {ExpandableNavLinkProps & import('preact').ButtonHTMLAttributes} props
229229
*/
230230
function ExpandableNavLink({ isOpen, label, children, ...rest }) {
231231
return (
@@ -264,7 +264,7 @@ const prefetchAndPreload = href => {
264264
*/
265265

266266
/**
267-
* @param {NavLinkProps & import('preact').AnchorHTMLAttributes} props
267+
* @param {NavLinkProps & Omit<import('preact').AnchorHTMLAttributes, 'role'>} props
268268
*/
269269
function NavLink({ href, flair, clsx, isOpen, ...rest }) {
270270
const { path } = useLocation();

0 commit comments

Comments
 (0)