about summary refs log tree commit diff
path: root/src/lib/routes/types.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-21 17:58:50 -0500
committerGitHub <noreply@github.com>2023-03-21 17:58:50 -0500
commita7e3ce25854d6186b77e68c155a9a8bcdbd896ec (patch)
tree55c1a86575876c50824be7175a047c3e409ff7e6 /src/lib/routes/types.ts
parent48e18662f69530d5c201d08014a039126c88e7dd (diff)
downloadvoidsky-a7e3ce25854d6186b77e68c155a9a8bcdbd896ec.tar.zst
Add fulltext search for posts and profiles (closes #340) (#342)
* Refactor mobile search screen

* Remove 'staleness' fetch trigger on search

* Implement a temporary fulltext search solution

* Add missing key from profile search result

* A few UI & UX improvements to the search suggestions

* Update web search suggestions

* Implement search in web build
Diffstat (limited to 'src/lib/routes/types.ts')
-rw-r--r--src/lib/routes/types.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/routes/types.ts b/src/lib/routes/types.ts
index 9ec623970..cc48e2dbe 100644
--- a/src/lib/routes/types.ts
+++ b/src/lib/routes/types.ts
@@ -23,7 +23,7 @@ export type HomeTabNavigatorParams = CommonNavigatorParams & {
 }
 
 export type SearchTabNavigatorParams = CommonNavigatorParams & {
-  Search: undefined
+  Search: {q?: string}
 }
 
 export type NotificationsTabNavigatorParams = CommonNavigatorParams & {
@@ -32,7 +32,7 @@ export type NotificationsTabNavigatorParams = CommonNavigatorParams & {
 
 export type FlatNavigatorParams = CommonNavigatorParams & {
   Home: undefined
-  Search: undefined
+  Search: {q?: string}
   Notifications: undefined
 }
 
@@ -40,7 +40,7 @@ export type AllNavigatorParams = CommonNavigatorParams & {
   HomeTab: undefined
   Home: undefined
   SearchTab: undefined
-  Search: undefined
+  Search: {q?: string}
   NotificationsTab: undefined
   Notifications: undefined
 }