Async functions return a Promise, type definitions state the start method returns IntroJs. It should state it returns Promise<IntroJs>. There are other functions/methods that are incorrectly typed as well in the latest type definition "@types/intro.js": "^5.1.1".
https://github.com/usablica/intro.js/blob/0dae1dc925dd68babf53881e1e4c6ec8f30f6948/src/index.ts#LL152C6-L152C6
Async functions return a Promise, type definitions state the start method returns IntroJs. It should state it returns
Promise<IntroJs>
. There are other functions/methods that are incorrectly typed as well in the latest type definition "@types/intro.js": "^5.1.1".interface IntroJs { start(): IntroJs; exit(force?: boolean): IntroJs; clone(): IntroJs;