api/client/types/poll.ts

15 lines
275 B
TypeScript
Raw Normal View History

export type Poll = {
id: string;
expires_at: string | null;
expired: boolean;
multiple: boolean;
votes_count: number;
options: Array<PollOption>;
voted: boolean;
};
export type PollOption = {
title: string;
votes_count: number | null;
};