From 1e4f6e6bb4d46e0f834094be78efa21e97cb8643 Mon Sep 17 00:00:00 2001 From: Solomon Hawk Date: Tue, 29 Oct 2024 14:44:39 -0400 Subject: [PATCH] Add type to buildAppRoutes return data --- apps/web/src/features/routing/router.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/features/routing/router.tsx b/apps/web/src/features/routing/router.tsx index e9c3225..b79ee73 100644 --- a/apps/web/src/features/routing/router.tsx +++ b/apps/web/src/features/routing/router.tsx @@ -19,8 +19,8 @@ export function buildAppRoutes({ protectedLoader, }: { trpcUtils: TrpcUtils; - guestLoader?: LoaderFunction; - protectedLoader?: LoaderFunction; + guestLoader: LoaderFunction; + protectedLoader: LoaderFunction; }) { return [ { @@ -114,7 +114,7 @@ export function buildAppRoutes({ }, ], }, - ]; + ] satisfies RouteObject[]; } export function guestLoaderBuilder(auth: ReturnType) {