mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-30 06:29:11 +02:00
If need be (#168)
This commit is contained in:
parent
6375e80641
commit
17dc9519d2
48 changed files with 1033 additions and 642 deletions
|
@ -1,10 +1,10 @@
|
|||
import { Participant, Vote } from "@prisma/client";
|
||||
import { Participant, Vote, VoteType } from "@prisma/client";
|
||||
import axios from "axios";
|
||||
|
||||
export interface AddParticipantPayload {
|
||||
pollId: string;
|
||||
name: string;
|
||||
votes: string[];
|
||||
votes: Array<{ optionId: string; type: VoteType }>;
|
||||
}
|
||||
|
||||
export type AddParticipantResponse = Participant & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue