minca
ApiSchemasVariables

Variable: meal

const meal: object & Typed<{
  date: string;
  meal: "breakfast" | "lunch" | "dinner" | "snack";
  note?: string;
}>;

Defined in: packages/core/src/schemas/library/life.ts:122

A meal on the plan: one per day per meal, and anyone may change it.

Type Declaration

description

readonly description: "A planned meal: one per day per meal." = 'A planned meal: one per day per meal.';
readonly links: object;

links.about

readonly about: LinkDeclaration;

name

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

rules

readonly rules: object;

rules.onePer

readonly onePer: readonly ["date", "meal"];

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.date

readonly date: object & object;
Type Declaration
maxLength
maxLength: number = 10;
minLength
minLength: number = 10;
type
type: "string";
x-kind
readonly "x-kind": "day";

schema.properties.meal

readonly meal: object;

schema.properties.meal.enum

enum: ("breakfast" | "lunch" | "dinner" | "snack")[];

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.required

readonly required: readonly ["date", "meal"];

schema.type

readonly type: "object" = 'object';

title

readonly title: "Meal" = 'Meal';

On this page