minca
ApiSchemasVariables

Variable: measurement

const measurement: object & Typed<{
  at: string;
  kind: string;
  note?: string;
  unit: string;
  value: number;
}>;

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

A measurement at a moment: a weight, a blood pressure, a meter reading.

Type Declaration

description

readonly description: "Something measured at a moment: a kind, a value, a unit." = 'Something measured at a moment: a kind, a value, a unit.';

name

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

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.at

readonly at: object & object;
Type Declaration
maxLength
maxLength: number = max;
minLength?
minLength?: number = min;
type
type: "string";
x-kind
readonly "x-kind": "when";

schema.properties.kind

readonly kind: object;

schema.properties.kind.maxLength

maxLength: number = max;

schema.properties.kind.minLength?

minLength?: number = min;

schema.properties.kind.type

type: "string";

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.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.properties.value

readonly value: object;

schema.properties.value.type

readonly type: "number" = 'number';

schema.required

readonly required: readonly ["kind", "value", "unit", "at"];

schema.type

readonly type: "object" = 'object';

title

readonly title: "Measurement" = 'Measurement';

On this page