Skip to content

Commit

Permalink
Add type to buildAppRoutes return data
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonhawk committed Oct 29, 2024
1 parent 27bd772 commit 1e4f6e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/features/routing/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export function buildAppRoutes({
protectedLoader,
}: {
trpcUtils: TrpcUtils;
guestLoader?: LoaderFunction;
protectedLoader?: LoaderFunction;
guestLoader: LoaderFunction;
protectedLoader: LoaderFunction;
}) {
return [
{
Expand Down Expand Up @@ -114,7 +114,7 @@ export function buildAppRoutes({
},
],
},
];
] satisfies RouteObject[];
}

export function guestLoaderBuilder(auth: ReturnType<typeof useSession>) {
Expand Down

0 comments on commit 1e4f6e6

Please sign in to comment.