TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Property 'globalPrivacyControl' does not exist on type 'Navigator'.

Open pechitook opened this issue 2 years ago • 1 comments

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

pechitook avatar Jan 06 '23 22:01 pechitook

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.

HolgerJeromin avatar Jan 07 '23 06:01 HolgerJeromin