ApiSchemasVariables
Variable: proposal
const proposal: object & Typed<{
body?: string;
closesAt?: string;
options: readonly string[];
quorum?: number;
status?: "open" | "passed" | "rejected" | "withdrawn";
title: string;
}>;Defined in: packages/core/src/schemas/library/community.ts:68
Something put to the group to decide, by a std.ballot on one of its options each.
Type Declaration
description
readonly description: "Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll." = 'Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll.';name
readonly name: "std.proposal" = 'std.proposal';rules
readonly rules: object;rules.fixed
readonly fixed: readonly ["options"];schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.body
readonly body: object;schema.properties.body.maxLength
maxLength: number = max;schema.properties.body.minLength?
minLength?: number = min;schema.properties.body.type
type: "string";schema.properties.closesAt
readonly closesAt: object & object;Type Declaration
maxLength
maxLength: number = max;minLength?
minLength?: number = min;type
type: "string";x-kind
readonly "x-kind": "when";schema.properties.options
readonly options: object;schema.properties.options.items
readonly items: object;schema.properties.options.items.maxLength
maxLength: number = max;schema.properties.options.items.minLength?
minLength?: number = min;schema.properties.options.items.type
type: "string";schema.properties.options.maxItems
readonly maxItems: 20 = 20;schema.properties.options.minItems
readonly minItems: 1 = 1;schema.properties.options.type
readonly type: "array" = 'array';schema.properties.quorum
readonly quorum: object;schema.properties.quorum.maximum?
maximum?: number = max;schema.properties.quorum.minimum
minimum: number = min;schema.properties.quorum.type
type: "integer";schema.properties.status
readonly status: object;schema.properties.status.enum
enum: ("open" | "passed" | "rejected" | "withdrawn")[];schema.properties.title
readonly title: object;schema.properties.title.maxLength
maxLength: number = max;schema.properties.title.minLength?
minLength?: number = min;schema.properties.title.type
type: "string";schema.required
readonly required: readonly ["title", "options"];schema.type
readonly type: "object" = 'object';title
readonly title: "Proposal" = 'Proposal';