Hiyve Components - v1.0.0
    Preparing search index...

    A poll with a question, options, and vote state.

    interface Poll {
        closedAt?: number;
        createdAt: number;
        createdBy: string;
        id: string;
        options: PollOption[];
        question: string;
        type: "multiple-choice" | "yes-no";
    }
    Index

    Properties

    closedAt?: number

    Unix timestamp (ms) when the poll was closed, or undefined if still open.

    createdAt: number

    Unix timestamp (ms) when the poll was created.

    createdBy: string

    User ID of the poll creator.

    id: string

    Unique identifier for this poll.

    options: PollOption[]

    Available voting options for this poll.

    question: string

    The question text presented to participants.

    type: "multiple-choice" | "yes-no"

    Whether this poll is a multiple-choice or yes/no poll.