`goToStep(stepIndex: number)`?
devrnt opened this issue · comments
#75 and #71 (comment) made me thinking to redo the behavior of both goToNextStep
and goToPreviousStep
.
I feel like dropping the stepIndex
parameter for both methods and adding a new method called goToStep(stepIndex: number)
so the responsibility of all methods is more encapsulated. This new method would also take into account the step boundaries (since there is nothing like that available at the moment).
This would result in a major version release