Skip to content

Commit c732823

Browse files
committed
chore: get rid of stepIndex in previous and next
1 parent 35134e1 commit c732823

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export type WizardValues = {
2222
* @param stepIndex Overwrite the default behaviour by providing a step index
2323
* */
2424
previousStep: (stepIndex?: number) => void;
25+
/**
26+
* Go to the given step index
27+
*
28+
* @param stepIndex The step index, starts at 0
29+
*/
30+
goToStep: (stepIndex: number) => void;
2531
/**
2632
* Attach a callback that will be called when calling `nextStep()`
2733
*

0 commit comments

Comments
 (0)