Cannot `router.navigate` to a AnyRedirect?

Before the devinxi I was able to do the following:


if (isRedirect(data)) {
  await router.navigate(data);
}


But now this throws a TS error:

Type 'AnyRedirect' has no properties in common with type 'NavigateOptions<RouterCore<Route<any, "/", ....


Not sure how I should handle those now
Was this page helpful?