Type alias OptionType

OptionType: {
    counter: number;
    created_at: string;
    data: {
        text: string;
    };
    id: string;
    poll_id: string;
}

Type declaration

  • counter: number

    Number of votes.

  • created_at: string

    When the option was created.

  • data: {
        text: string;
    }

    The content of the option.

    • text: string
  • id: string

    Persistent unique id.

  • poll_id: string

    Associated poll id.