about summary refs log tree commit diff
path: root/src/lib/routes/types.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-06-11 20:12:05 +0300
committerGitHub <noreply@github.com>2025-06-11 10:12:05 -0700
commit7341294df6156afdf24ab43e1e27ebba94f265ad (patch)
tree2d1e74054f82c3238a4bfcbf55121124dd079e34 /src/lib/routes/types.ts
parent269105371b22f2de6e8017862a783aaec340948b (diff)
downloadvoidsky-7341294df6156afdf24ab43e1e27ebba94f265ad.tar.zst
Fix using screen names in `Link` (#8473)
* use our router in favour of useLinkBuilder

* test feature using Home header feeds button

* handle non-string params properly
Diffstat (limited to 'src/lib/routes/types.ts')
-rw-r--r--src/lib/routes/types.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/routes/types.ts b/src/lib/routes/types.ts
index 6f102d438..f58742390 100644
--- a/src/lib/routes/types.ts
+++ b/src/lib/routes/types.ts
@@ -143,5 +143,5 @@ export type RouteParams = Record<string, string>
 export type MatchResult = {params: RouteParams}
 export type Route = {
   match: (path: string) => MatchResult | undefined
-  build: (params: RouteParams) => string
+  build: (params?: Record<string, any>) => string
 }