feat: polls (#451)

Co-authored-by: silberengel <silberengel7@protonmail.com>
This commit is contained in:
Cody Tseng 2025-07-27 12:05:50 +08:00 committed by GitHub
parent 636ceacdad
commit b35e0cf850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1240 additions and 130 deletions

View file

@ -1,4 +1,5 @@
import { Event, VerifiedEvent } from 'nostr-tools'
import { POLL_TYPE } from './constants'
export type TProfile = {
username: string
@ -151,3 +152,12 @@ export type TMediaUploadServiceConfig =
| {
type: 'blossom'
}
export type TPollType = (typeof POLL_TYPE)[keyof typeof POLL_TYPE]
export type TPollCreateData = {
isMultipleChoice: boolean
options: string[]
relays: string[]
endsAt?: number
}