ApiSchemasVariables
Variable: pledge
const pledge: object & Typed<{
amount: number;
note?: string;
respondingTo?: string;
}>;Defined in: packages/core/src/schemas/library/community.ts:200
One person's pledge toward a goal, in its units: once each, not changed once made.
Type Declaration
description
readonly description: "A promise toward a goal: once per person, not changed once made." = 'A promise toward a goal: once per person, not changed once made.';links
readonly links: object;links.about
readonly about: LinkDeclaration;name
readonly name: "std.pledge" = 'std.pledge';rules
readonly rules: object;rules.fixed
readonly fixed: readonly ["amount"];rules.onePer
readonly onePer: readonly ["@author", "link:about"];schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.amount
readonly amount: object;schema.properties.amount.maximum?
maximum?: number = max;schema.properties.amount.minimum
minimum: number = min;schema.properties.amount.type
type: "integer";schema.properties.note
readonly note: object;schema.properties.note.maxLength
maxLength: number = max;schema.properties.note.minLength?
minLength?: number = min;schema.properties.note.type
type: "string";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 ["amount"];schema.type
readonly type: "object" = 'object';title
readonly title: "Pledge" = 'Pledge';topics
readonly topics: readonly ["respondingTo"];