Issue
Since navigator.userAgent's information will be reduced so I want to migrate to User-Agent Client Hints but it shows error like this:
How do I solve this, please help. Many thanks
Solution
TypeScript doesn't ship with type declarations for the experimental Navigator.userAgentData property by default.
You could install e.g. this package which claims to add the types or just look at its implementation to see how to write the declarations yourself.
Answered By - AKX

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.