Skip to content

Commit b21cdb0

Browse files
author
Nikita Kornilov
committed
Fix return type of onBeforeChange method
1 parent b1ee8c8 commit b21cdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ declare module 'intro.js-react' {
8282
* If you want to prevent the transition to the next / previous step, you can return false in this callback
8383
* (available since intro.js 2.8.0).
8484
*/
85-
onBeforeChange?(nextStepIndex: number, nextElement: Element): void | false;
85+
onBeforeChange?(nextStepIndex: number, nextElement: Element): void | false | Promise<void | false>;
8686
/**
8787
* Callback called after changing the current step.
8888
*/

0 commit comments

Comments
 (0)