Adding Const Context to Generic Type Parameters
const rtr = router([
{
path: "/",
component: Main,
},
{
path: "/about",
component: About,
},
])
rtr.navigate("/faq");
// ^
// Argument of type '"/faq"' is not assignable to
// parameter of type '"/" | "/about"'.(2345)