faisalman / ua-parser-js

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

`withClientHints` not available in TS types #676

Closed maphe closed 9 months ago

maphe commented 9 months ago

Library version v2.0.0-alpha.3

Describe the bug withClientHints is not exposed in the @types/ua-parser-js package, making it unaccessible as TS will not compile.

faisalman commented 9 months ago

I have added a built-in TypeScript declarations just recently, please try using the latest published pre-release v2.0.0-beta.1

maphe commented 9 months ago

Cool, looking better with beta1 indeed. Thanks