rudeshark.net/packages/megalodon/src/misskey/entities/poll.ts

14 lines
204 B
TypeScript

namespace MisskeyEntity {
export type Choice = {
text: string;
votes: number;
isVoted: boolean;
};
export type Poll = {
multiple: boolean;
expiresAt: string;
choices: Array<Choice>;
};
}