TinyBase logoTinyBase

TableCallback

The TableCallback type describes a function that takes a Table's Id and a callback to loop over each Row within it.

(
  tableId: Id,
  forEachRow: (rowCallback: RowCallback) => void,
): void
TypeDescription
tableIdId

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

forEachRow(rowCallback: RowCallback) => void

A function that will let you iterate over the Row objects in this Table.

returnsvoid

This has no return value.

A TableCallback is provided when using the forEachTable method, so that you can do something based on every Table in the Store. See that method for specific examples.