-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
No typing for the sub-modules #736
Labels
Comments
+1 to this, it would be great to be able to use the enums from this package. |
Really odd this isn't caught by a test or something similar. I'll open a PR for this shortly. |
2 tasks
Am I the only one who has still problems with this? import { Bots } from "ua-parser-js/extensions";
import { isBot } from "ua-parser-js/helpers"; |
We are experiencing the same issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Library version
v2.0.0-alpha.3
The /enums sub-module (and the rest) don't seem to ship with type declarations, so TypeScript complains when you try to import from them:
It seems that it was resolved in this commit d6d8ac7.
However, types were added for other submodules, but not enums.
Could you add types for enums as well?
The text was updated successfully, but these errors were encountered: