feat: polls (#451)
Co-authored-by: silberengel <silberengel7@protonmail.com>
This commit is contained in:
parent
636ceacdad
commit
b35e0cf850
35 changed files with 1240 additions and 130 deletions
10
src/types.ts
10
src/types.ts
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue