intro.js icon indicating copy to clipboard operation
intro.js copied to clipboard

Importing introJS types issue

Open joewIST opened this issue 1 year ago • 2 comments

Is this:

import introJs from 'intro.js/intro.js';

still the best way to import introJs types?

We just upgraded to the latest version of intro.js in our Angular project, and the following is no longer valid and causes TS compilation errors:

import introJs from 'intro.js'; 
const steps: introJs.Step[] = []

However, when i upgade the import to the one above, it works, albeit with the following TS warnings:

TS7016: Could not find a declaration file for module intro.js/intro.js.
C:/Users/joe.williams/Projects/Megatron/frontend/src/node_modules/intro.js/intro.js
implicitly has an any type.

Originally posted by @joewIST in https://github.com/usablica/intro.js/issues/874#issuecomment-2135090914

joewIST avatar May 28 '24 12:05 joewIST

What version do you have installed @joewIST?

binrysearch avatar Sep 01 '24 10:09 binrysearch

7.2.0

joewIST avatar Sep 02 '24 07:09 joewIST

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 01 '25 00:02 stale[bot]