feat: nak req

This commit is contained in:
codytseng
2025-12-10 23:10:47 +08:00
parent ac196cd662
commit a6d6a19199
9 changed files with 388 additions and 25 deletions

18
src/types/index.d.ts vendored
View File

@@ -178,12 +178,20 @@ export type TSearchType =
| 'hashtag'
| 'relay'
| 'externalContent'
| 'nak'
export type TSearchParams = {
type: TSearchType
search: string
input?: string
}
export type TSearchParams =
| {
type: Exclude<TSearchType, 'nak'>
search: string
input?: string
}
| {
type: 'nak'
search: string
request: TFeedSubRequest
input?: string
}
export type TNotificationStyle =
(typeof NOTIFICATION_LIST_STYLE)[keyof typeof NOTIFICATION_LIST_STYLE]