No typing for the sub-modules

Author: ChangmoSungCreated Jul 9, 2024Updated May 7, 2026
LabelsEnhancement

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:

Screenshot 2024-07-09 at 12 47 25 PM

It seems that it was resolved in this commit https://github.com/faisalman/ua-parser-js/commit/d6d8ac7cb43d610e54e1e4355da35b0e7ea76a43.

However, types were added for other submodules, but not enums.

Could you add types for enums as well?