ApiSchemasVariables
Variable: recipe
const recipe: object & Typed<{
cookMinutes?: number;
description?: string;
image?: {
alt?: string;
blob: {
hash: string;
key?: string;
mime: string;
name?: string;
salt?: string;
size: number;
};
};
ingredients?: readonly object[];
prepMinutes?: number;
servings?: number;
source?: string;
steps?: readonly string[];
title: string;
}>;Defined in: packages/core/src/schemas/library/life.ts:85
A recipe, after schema.org's.
Type Declaration
description
readonly description: "A recipe: ingredients and steps." = 'A recipe: ingredients and steps.';name
readonly name: "std.recipe" = 'std.recipe';schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.cookMinutes
readonly cookMinutes: object;schema.properties.cookMinutes.maximum?
maximum?: number = max;schema.properties.cookMinutes.minimum
minimum: number = min;schema.properties.cookMinutes.type
type: "integer";schema.properties.description
readonly description: object;schema.properties.description.maxLength
maxLength: number = max;schema.properties.description.minLength?
minLength?: number = min;schema.properties.description.type
type: "string";schema.properties.image
readonly image: object & object;Type Declaration
properties
properties: object;properties.alt
alt: object;properties.alt.maxLength
maxLength: number = max;properties.alt.minLength?
minLength?: number = min;properties.alt.type
type: "string";properties.blob
blob: object & object;Type Declaration
properties
properties: object;properties.hash
hash: object;properties.hash.maxLength
maxLength: ... = 64;properties.hash.minLength
minLength: ... = 64;properties.hash.type
type: ...;properties.key
key: object;properties.key.maxLength
maxLength: ... = 22;properties.key.minLength
minLength: ... = 22;properties.key.type
type: ...;properties.mime
mime: object;properties.mime.maxLength
maxLength: ... = max;properties.mime.minLength?
minLength?: ... = min;properties.mime.type
type: ...;properties.name
name: object;properties.name.maxLength
maxLength: ... = max;properties.name.minLength?
minLength?: ... = min;properties.name.type
type: ...;properties.salt
salt: object;properties.salt.maxLength
maxLength: ... = 22;properties.salt.minLength
minLength: ... = 22;properties.salt.type
type: ...;properties.size
size: object;properties.size.minimum
minimum: ... = 0;properties.size.type
type: ...;required
required: readonly ["hash", "size", "mime"];type
type: "object";x-kind
readonly "x-kind": "file";required
required: readonly ["blob"];type
type: "object";x-kind
readonly "x-kind": "image";schema.properties.ingredients
readonly ingredients: object;schema.properties.ingredients.items
readonly items: object;schema.properties.ingredients.items.properties
readonly properties: object;schema.properties.ingredients.items.properties.quantity
readonly quantity: object;schema.properties.ingredients.items.properties.quantity.minimum
readonly minimum: 0 = 0;schema.properties.ingredients.items.properties.quantity.type
readonly type: "number" = 'number';schema.properties.ingredients.items.properties.text
readonly text: object;schema.properties.ingredients.items.properties.text.maxLength
maxLength: number = max;schema.properties.ingredients.items.properties.text.minLength?
minLength?: number = min;schema.properties.ingredients.items.properties.text.type
type: "string";schema.properties.ingredients.items.properties.unit
readonly unit: object;schema.properties.ingredients.items.properties.unit.maxLength
maxLength: number = max;schema.properties.ingredients.items.properties.unit.minLength?
minLength?: number = min;schema.properties.ingredients.items.properties.unit.type
type: "string";schema.properties.ingredients.items.required
readonly required: readonly ["text"];schema.properties.ingredients.items.type
readonly type: "object" = 'object';schema.properties.ingredients.maxItems
readonly maxItems: 200 = 200;schema.properties.ingredients.type
readonly type: "array" = 'array';schema.properties.prepMinutes
readonly prepMinutes: object;schema.properties.prepMinutes.maximum?
maximum?: number = max;schema.properties.prepMinutes.minimum
minimum: number = min;schema.properties.prepMinutes.type
type: "integer";schema.properties.servings
readonly servings: object;schema.properties.servings.maximum?
maximum?: number = max;schema.properties.servings.minimum
minimum: number = min;schema.properties.servings.type
type: "integer";schema.properties.source
readonly source: object & object;Type Declaration
maxLength
maxLength: number = max;minLength?
minLength?: number = min;type
type: "string";x-kind
readonly "x-kind": "url";schema.properties.steps
readonly steps: object;schema.properties.steps.items
readonly items: object;schema.properties.steps.items.maxLength
maxLength: number = max;schema.properties.steps.items.minLength?
minLength?: number = min;schema.properties.steps.items.type
type: "string";schema.properties.steps.maxItems
readonly maxItems: 200 = 200;schema.properties.steps.type
readonly type: "array" = 'array';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"];schema.type
readonly type: "object" = 'object';title
readonly title: "Recipe" = 'Recipe';