Skip to content

Commit bb0eeb8

Browse files
authored
Merge pull request #94 from nikitavik/main
2 parents b1ee8c8 + 03492d7 commit bb0eeb8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
* Update TypeScript `onBeforeChange` return type to support promises.
4+
15
## 0.7.0
26

37
* Add missing TypeScript `title` attribute type to steps.

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)