usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.85k stars 2.59k forks source link

Importing introJS types issue #2052

Open joewIST opened 6 months ago

joewIST commented 6 months ago

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

binrysearch commented 2 months ago

What version do you have installed @joewIST?

joewIST commented 2 months ago

7.2.0