server/types/entities/poll.ts

12 lines
249 B
TypeScript
Raw Normal View History

import type { APIPollOption } from "./poll_option";
2023-09-11 05:31:08 +02:00
2023-09-12 22:48:10 +02:00
export interface APIPoll {
2024-04-07 07:30:49 +02:00
id: string;
expires_at: string | null;
expired: boolean;
multiple: boolean;
votes_count: number;
options: APIPollOption[];
voted: boolean;
2023-09-11 05:46:20 +02:00
}