Skip to main content

stepDone

Whether the person has done what a step asks, comparing the app state when the step began with the state now.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { stepDone } from "@mapcairn/core";

function stepDone(advance: TourAdvance, atStart: TourSnapshot, now: TourSnapshot): boolean;

Parameters​

  • advance (TourAdvance)
  • atStart (TourSnapshot)
  • now (TourSnapshot)

Returns​

boolean

See also​

Source: packages/core/src/tour/tour.ts:83