minca
ApiSchemasVariables

Variable: ballot

const ballot: object & Typed<{
  choice: number;
  respondingTo?: string;
}>;

Defined in: packages/core/src/schemas/library/community.ts:108

One person's final say on a proposal: the position of their choice in its options. Unlike a std.vote, it can't be changed once cast, so a std.decision can cite it and mean it.

Type Declaration

description

readonly description: "One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote." = 'One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote.';
readonly links: object;

links.about

readonly about: LinkDeclaration;

name

readonly name: "std.ballot" = 'std.ballot';

rules

readonly rules: object;

rules.fixed

readonly fixed: readonly ["choice"];

rules.onePer

readonly onePer: readonly ["@author", "link:about"];

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.choice

readonly choice: object;

schema.properties.choice.minimum

readonly minimum: 0 = 0;

schema.properties.choice.type

readonly type: "integer" = 'integer';

schema.properties.choice.x-choicesFrom

readonly "x-choicesFrom": object;

schema.properties.choice.x-choicesFrom.field

readonly field: "options" = 'options';

schema.properties.choice.x-choicesFrom.rel

readonly rel: "about" = 'about';

schema.properties.respondingTo

readonly respondingTo: object & object;
Type Declaration
maxLength
maxLength: number = max;
minLength?
minLength?: number = min;
type
type: "string";
x-kind
readonly "x-kind": "did";

schema.required

readonly required: readonly ["choice"];

schema.type

readonly type: "object" = 'object';

title

readonly title: "Ballot" = 'Ballot';

topics

readonly topics: readonly ["respondingTo"];

On this page