refactor: note list component

This commit is contained in:
codytseng 2025-08-11 22:34:48 +08:00
parent 96ed0757de
commit e78e2c2078
13 changed files with 766 additions and 419 deletions

12
src/types/index.d.ts vendored
View file

@ -1,6 +1,16 @@
import { Event, VerifiedEvent } from 'nostr-tools'
import { Event, VerifiedEvent, Filter } from 'nostr-tools'
import { POLL_TYPE } from './constants'
export type TSubRequest = {
urls: string[]
filter: Omit<Filter, 'since' | 'until'> & { limit: number }
}
export type TNormalFeedSubRequest = {
urls: string[]
filter: Omit<Filter, 'since' | 'until' | 'kinds'>
}
export type TProfile = {
username: string
pubkey: string