ApiSchemasVariables
Variable: habit
const habit: object & Typed<{
name: string;
position?: string;
schedule?: string;
target?: number;
unit?: string;
}>;Defined in: packages/core/src/schemas/library/planning.ts:213
A habit to keep. Check-ins are about it.
Type Declaration
description
readonly description: "Something to do regularly." = 'Something to do regularly.';name
readonly name: "std.habit" = 'std.habit';schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.name
readonly name: object;schema.properties.name.maxLength
maxLength: number = max;schema.properties.name.minLength?
minLength?: number = min;schema.properties.name.type
type: "string";schema.properties.position
readonly position: object & object;Type Declaration
maxLength
maxLength: number = max;minLength?
minLength?: number = min;type
type: "string";x-kind
readonly "x-kind": "position";schema.properties.schedule
readonly schedule: object;schema.properties.schedule.maxLength
maxLength: number = max;schema.properties.schedule.minLength?
minLength?: number = min;schema.properties.schedule.type
type: "string";schema.properties.target
readonly target: object;schema.properties.target.description
readonly description: "How much a day counts as done" = 'How much a day counts as done';schema.properties.target.minimum
readonly minimum: 0 = 0;schema.properties.target.type
readonly type: "number" = 'number';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 ["name"];schema.type
readonly type: "object" = 'object';title
readonly title: "Habit" = 'Habit';