ApiSchemasVariables
Variable: goal
const goal: object & Typed<{
body?: string;
closesAt?: string;
target: number;
title: string;
unit: string;
}>;Defined in: packages/core/src/schemas/library/community.ts:180
Something the group reaches together, a unit at a time: "40 people", "5000
NOK", "100 hours". People pledge toward it; std.goal-reached proves it.
Type Declaration
description
readonly description: "A target the group reaches together, pledge by pledge." = 'A target the group reaches together, pledge by pledge.';name
readonly name: "std.goal" = 'std.goal';rules
readonly rules: object;rules.fixed
readonly fixed: readonly ["target", "unit"];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.target
readonly target: object;schema.properties.target.maximum?
maximum?: number = max;schema.properties.target.minimum
minimum: number = min;schema.properties.target.type
type: "integer";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.properties.unit
readonly unit: object;schema.properties.unit.maxLength
maxLength: number = max;schema.properties.unit.minLength?
minLength?: number = min;schema.properties.unit.type
type: "string";schema.required
readonly required: readonly ["title", "target", "unit"];schema.type
readonly type: "object" = 'object';title
readonly title: "Goal" = 'Goal';