TinyBase logoTinyBase

CheckpointCallback

The CheckpointCallback type describes a function that takes a Checkpoint's Id.

(
  checkpointId: Id,
  label?: string,
): void
TypeDescription
checkpointIdId

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

label?string
returnsvoid

This has no return value.

A CheckpointCallback is provided when using the forEachCheckpoint method, so that you can do something based on every Checkpoint in the Checkpoints object. See that method for specific examples.

Since

v1.0.0