-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support: How to import it in typescript? #48
Comments
@distante I have tried to add explicit path to the type definitions to the "package.json". According to the documentation, it should help: Please try to upgrade to |
Yes, now it works @fczbkk, thank you! |
Hi, I have an issue with TypeScript type check but only with the selectors option
TypeScript considers "id" as a string and not as a CssSelectorType. Now if I try
It tells me that this type is not exported in the module (index.d.ts), which is true. Can you help me ? |
Hey @xblanc33, thanks for the report. You're right, the type of "selectors" property in options was set to an enum, which was not exported publicly. I have updated it so that it allows one of these strings: Update to |
Sorry I pressed ENTER without notice!
I saw it has typescript definitions but I can not find the way to imported so the types are recognized. What I am doing for now is declaring the module my sefl with:
But of course it could break at any time and it does not have and documentation included.
The text was updated successfully, but these errors were encountered: