Type alias PollType

PollType: {
    created_at: string;
    creator: UserType;
    id: string;
    is_active: boolean;
    options: OptionType[];
    question: string;
    room: string;
}

Type declaration

  • created_at: string

    When the poll was created.

  • creator: UserType

    Author.

  • id: string

    Persistent unique id.

  • is_active: boolean

    Is poll active.

  • options: OptionType[]

    Poll options.

  • question: string

    The question of the poll

  • room: string

    Room id.