Fix archive redirect route typing

This commit is contained in:
Mohamed Boudra
2026-05-28 15:40:36 +07:00
parent 990bca71b7
commit c4f9874e1f
3 changed files with 7 additions and 4 deletions
@@ -1,3 +1,4 @@
import type { Href } from "expo-router";
import { describe, expect, it } from "vitest";
import { buildWorkspaceArchiveRedirectRoute } from "@/utils/workspace-archive-navigation";
import type { WorkspaceDescriptor } from "@/stores/session-store";
@@ -82,9 +83,9 @@ describe("buildWorkspaceArchiveRedirectRoute", () => {
function createFakeRouter(workspaces: WorkspaceDescriptor[]): {
deps: RedirectIfArchivingActiveWorkspaceDeps;
routes: string[];
routes: Href[];
} {
const routes: string[] = [];
const routes: Href[] = [];
return {
routes,
deps: {