faisalman / ua-parser-js

UAParser.js - The Essential Web Development Tool for User-Agent Detection.
https://uaparser.dev/
GNU Affero General Public License v3.0
9.09k stars 1.19k forks source link

No typing for the sub-modules #736

Open ChangmoSung opened 2 months ago

ChangmoSung commented 2 months ago

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?

hbbrawer-twitch commented 1 month ago

+1 to this, it would be great to be able to use the enums from this package.