TinyBase logoTinyBase


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

  sliceId: Id,
  forEachRow: (rowCallback: RowCallback) => void,
): void

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

forEachRow(rowCallback: RowCallback) => void

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


This has no return value.

A SliceCallback is provided when using the forEachSlice method, so that you can do something based on every Slice in an Index. See that method for specific examples.