sjmc11 / tourguide-js

TourGuide is a Javascript library for creating user tours and on-boarding steps for your apps.
https://tourguidejs.com
MIT License
592 stars 27 forks source link

fix import statement for type only imports #19

Closed garlandcrow closed 10 months ago

garlandcrow commented 1 year ago

Strict TS deems it an error to import a type without import type. For example:

Error: This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.
import type {TourGuideClient} from "../Tour";
import {TourGuideStep} from "../types/TourGuideStep";

So this PR changes all the places where that was just an import before so no longer throws any TS errors for people using the strict setting in their TSConfig.