diff --git a/packages/router/src/Set.tsx b/packages/router/src/Set.tsx index 141024f60b97..74b59ca01dd8 100644 --- a/packages/router/src/Set.tsx +++ b/packages/router/src/Set.tsx @@ -1,7 +1,7 @@ import type { ReactElement, ReactNode } from 'react' import React from 'react' -import type { routes } from '@redwoodjs/router' +import type { AvailableRoutes } from '@redwoodjs/router' type SetProps

= (P extends React.FC ? React.ComponentProps

: unknown) & { /** @@ -22,7 +22,7 @@ type SetProps

= (P extends React.FC ? React.ComponentProps

: unknown) & { * * @deprecated Please use `` instead and specify this prop there */ - unauthenticated?: keyof typeof routes + unauthenticated?: keyof AvailableRoutes /** * Route is permitted when authenticated and user has any of the provided * roles such as "admin" or ["admin", "editor"] @@ -47,7 +47,7 @@ export function Set(props: SetProps) { type PrivateSetProps

= Omit, 'private' | 'unauthenticated'> & { /** The page name where a user will be redirected when not authenticated */ - unauthenticated: keyof typeof routes + unauthenticated: keyof AvailableRoutes } /** @deprecated Please use `` instead */