TinyBase logoTinyBase

IndexCallback

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

(
  indexId: Id,
  forEachSlice: (sliceCallback: SliceCallback) => void,
): void
TypeDescription
indexIdId

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

forEachSlice(sliceCallback: SliceCallback) => void
returnsvoid

This has no return value.

A IndexCallback is provided when using the forEachIndex method, so that you can do something based on every Index in the Indexes object. See that method for specific examples.

Since

v1.0.0