Skip to content

Key

A reference to a value that a plugin can watch: the thing that holds the value, its name, and its type. The keys that the app provides are under ctx.keys, and the on(id) function of a facet handle returns the key of the value of that facet on one row. A key is passed to ctx.observe.

Type Parameter Description
T the type of the value
readonly key: string;

The name of the value within that thing.


readonly object: string;

The thing that holds the value.


readonly value?: T;

Carries the type of the value, for type checking. It never holds a value.