TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Property 'globalPrivacyControl' does not exist on type 'Navigator'.
Even though it is not an official W3C listed spec, GPC is a standard already supported natively by Brave and Firefox.
Opening this issue/discussion to understand if adding support for this optional field that some browsers support is something worth including or not. Happy to put up a PR with the change if so.
Of course, the workaround for now would be to do
(navigator as any).globalPrivacyControl
https://github.com/microsoft/TypeScript-DOM-lib-generator#why-is-my-fancy-api-still-not-available-here
Brave is not one of those major browsers. So I think we will have to wait a bit.