You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the last couple refactors on CNavItem, the as property as become mandatory in Typescript:
The first CNavItem on line 14 has a as, the second one on line 19 doesn't and trigger a type check error.
I think it's coming from the recent refactors on packages/coreui-vue/src/components/nav/CNavItem.ts
The actual console type check error is:
src/components/AdminSubHeader.vue:19:6 - error TS2345: Argument of type '{}' is not assignable to parameter of type '(Partial<{} | { [x: string]: any; }> & Omit<{ readonly as: string; readonly disabled?: boolean | undefined; readonly active?: boolean | undefined; readonly href?: string | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>) & Record<...>'.
19 <CNavItem>
~~~~~~~~
The text was updated successfully, but these errors were encountered:
abompard
changed the title
CNavItem.as is not a required propertyCNavItem.as is now a required property
Oct 14, 2024
abompard
added a commit
to fedora-infra/fmn
that referenced
this issue
Oct 14, 2024
Hey!
Since the last couple refactors on CNavItem, the
as
property as become mandatory in Typescript:The first
CNavItem
on line 14 has aas
, the second one on line 19 doesn't and trigger a type check error.I think it's coming from the recent refactors on
packages/coreui-vue/src/components/nav/CNavItem.ts
The actual console type check error is:
The text was updated successfully, but these errors were encountered: