We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ee8c8 commit b21cdb0Copy full SHA for b21cdb0
index.d.ts
@@ -82,7 +82,7 @@ declare module 'intro.js-react' {
82
* If you want to prevent the transition to the next / previous step, you can return false in this callback
83
* (available since intro.js 2.8.0).
84
*/
85
- onBeforeChange?(nextStepIndex: number, nextElement: Element): void | false;
+ onBeforeChange?(nextStepIndex: number, nextElement: Element): void | false | Promise<void | false>;
86
/**
87
* Callback called after changing the current step.
88
0 commit comments