TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Add support for User-Agent Client Hints
Provides navigator.userAgentData for User-Agent Client Hints values as per https://wicg.github.io/ua-client-hints/
From the heuristics for inclusion, I'm afraid this is currently only available in Chromium-based browsers. However with the hope of generally moving away from use of navigator.userAgent it would be helpful to have the new API available here. So I'm hoping for addition based on the criteria: "new features going to be used by a lot of people".
This was previously raised here: https://github.com/microsoft/TypeScript/issues/43604 back in April, but with this now being available in stable it felt like a good opportunity to revisit.
Thanks - I'm afraid we're probably going to be waiting on this until we see some other browsers implement it
Sounds fair to me. I'm fine with this either waiting or just closing and we can try again when there's additional support. Repo instructions were very clear, so thanks for making it so simple to contribute.