Represents a single option in a poll.
const option: PollOption = { id: 'opt-1', text: 'Option A', votes: ['user-1', 'user-2'],}; Copy
const option: PollOption = { id: 'opt-1', text: 'Option A', votes: ['user-1', 'user-2'],};
Unique identifier for the option
Option text displayed to users
Optional
Optional vote count for anonymous polls (replaces votes array)
Array of user IDs who voted for this option (or count if anonymous)
Represents a single option in a poll.
Example