1
Fork 0
tildes-shepherd/source/types.d.ts

15 lines
484 B
TypeScript
Raw Normal View History

import type Shepherd from "shepherd.js";
import type {tourIds} from "./tours/exports.js";
2023-06-11 14:17:01 +00:00
declare global {
const $browser: "chromium" | "firefox";
const $dev: boolean;
const $test: boolean;
type TourId = (typeof tourIds)[number];
type TourStepEvent = "show" | "destroy";
type TourStepEventFunction = Parameters<Shepherd.Step["on"]>[1];
type TourStepEventHandler = [string, [TourStepEvent, TourStepEventFunction]];
type TourStepOptions = Shepherd.Step.StepOptions;
2023-06-11 14:17:01 +00:00
}