TinyBase logoTinyBase

ValueCallback

The ValueCallback type describes a function that takes a Value's Id and its actual value.

(
  valueId: Id,
  value: Value,
): void
TypeDescription
valueIdId

The Id of the Value that the callback can operate on.

valueValue

The Value itself.

returnsvoid

This has no return value.

A ValueCallback is provided when using the forEachValue method, so that you can do something based on every Value in a Store. See that method for specific examples.

Since

v3.0.0