Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing introJS types issue #2052

Open
joewIST opened this issue May 28, 2024 · 2 comments
Open

Importing introJS types issue #2052

joewIST opened this issue May 28, 2024 · 2 comments
Labels

Comments

@joewIST
Copy link

joewIST commented May 28, 2024

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 #874 (comment)

@binrysearch
Copy link
Contributor

What version do you have installed @joewIST?

@joewIST
Copy link
Author

joewIST commented Sep 2, 2024

7.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants