Skip to main content

TourState

Where the tour is: off, showing the welcome card, on a step, or showing the ending card. step is the index of the current step while running.

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

Signature​

import type { TourState } from "@mapcairn/core";

type TourState = {
readonly status: "off" | "welcome" | "ended";
readonly step: 0;
} | {
readonly status: "running";
readonly step: number;
readonly steps: number;
};

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