This results in a type error because the IntroStep type includes step, title, and scrollTo as required properties.
error TS2345: Argument of type '{ element: string; intro: string; position: string; }' is not assignable to parameter of type 'IntroStep'.
Type '{ element: string; intro: string; position: string; }' is missing the following properties from type 'IntroStep': step, title, scrollTo
When I ignore the type error it seems to work, so it should just be a matter of updating the types.
Description
IntroStep types do not match documentation.
Expected Behavior
I expect to be able to add steps via the API specifying
element
,intro
, andposition
properties as per the documentation: https://introjs.com/docs/intro/api#introjsaddstepsstepsActual Behavior
This results in a type error because the IntroStep type includes
step
,title
, andscrollTo
as required properties.When I ignore the type error it seems to work, so it should just be a matter of updating the types.