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
Hi, I just recently started developing with inferno, and I found this type error I'm getting using NavLink. It might be a bug in the type definition, or it might just be me not understanding what's happening.
Observed Behaviour
The following code is giving a type error:
<NavLinkto="somewhere">Link label</NavLink>
This gives:
error TS2740: Type '{ children: string; to: string; }' is missing the following properties from type '{ [x: string]: any; to: any; exact: any; strict: any; onClick: any; location: any; activeClassName?: string; className: any; activeStyle: any; style: any; isActive: any; ariaCurrent?: string; }': exact, strict, onClick, location, and 4 more.
Expected Current Behaviour
If I understand NavLink properly, those parameters should be optional, as it happens with Link, but instead, they are mandatory, as it can be seen in the source code.
Inferno Metadata
This is happening in Fedora Linux, inferno-router 7.4.2, with typescript 3.9.6
The text was updated successfully, but these errors were encountered:
Hi, I just recently started developing with inferno, and I found this type error I'm getting using
NavLink
. It might be a bug in the type definition, or it might just be me not understanding what's happening.Observed Behaviour
The following code is giving a type error:
This gives:
Expected Current Behaviour
If I understand
NavLink
properly, those parameters should be optional, as it happens withLink
, but instead, they are mandatory, as it can be seen in the source code.Inferno Metadata
This is happening in Fedora Linux, inferno-router 7.4.2, with typescript 3.9.6
The text was updated successfully, but these errors were encountered: