# Variable: poll

```ts
const poll: object & Typed<{
  closed?: boolean;
  options: readonly string[];
  question: string;
}>;
```

Defined in: [packages/core/src/schemas/library/community.ts:17](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/library/community.ts#L17)

A question with fixed options. The options cannot change once it is asked —
votes point at them by position — but whoever asked can close it.

## Type Declaration

### description

```ts
readonly description: "A question with options to vote on." = 'A question with options to vote on.';
```

### name

```ts
readonly name: "std.poll" = 'std.poll';
```

### rules

```ts
readonly rules: object;
```

#### rules.fixed

```ts
readonly fixed: readonly ["options"];
```

### schema

```ts
readonly schema: object;
```

#### schema.properties

```ts
readonly properties: object;
```

#### schema.properties.closed

```ts
readonly closed: object;
```

#### schema.properties.closed.description

```ts
readonly description: "No more votes, as the asker sees it" = 'No more votes, as the asker sees it';
```

#### schema.properties.closed.type

```ts
readonly type: "boolean" = 'boolean';
```

#### schema.properties.options

```ts
readonly options: object;
```

#### schema.properties.options.items

```ts
readonly items: object;
```

#### schema.properties.options.items.maxLength

```ts
readonly maxLength: 200 = 200;
```

#### schema.properties.options.items.minLength

```ts
readonly minLength: 1 = 1;
```

#### schema.properties.options.items.type

```ts
readonly type: "string" = 'string';
```

#### schema.properties.options.type

```ts
readonly type: "array" = 'array';
```

#### schema.properties.question

```ts
readonly question: object;
```

#### schema.properties.question.maxLength

```ts
readonly maxLength: 500 = 500;
```

#### schema.properties.question.minLength

```ts
readonly minLength: 1 = 1;
```

#### schema.properties.question.type

```ts
readonly type: "string" = 'string';
```

#### schema.required

```ts
readonly required: readonly ["question", "options"];
```

#### schema.type

```ts
readonly type: "object" = 'object';
```

### title

```ts
readonly title: "Poll" = 'Poll';
```
