You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web API type definition issue] GPUBufferUsage #2465
If conditions are not fulfilled but you think MDN is wrong, please file an issue at https://github.com/mdn/browser-compat-data/issues/. The type will be automatically added in a few weeks when MDN fixes their data.
The GPUBufferUsage namespace only contains constants, which should not be documented in BCD; thus, the GPUBufferUsage namespace should not be documented.
What is the process for contributing a type that BCD deliberately omits?
For contributing a type that BCD deliberately omits you can add it to the gpu.kdl file
I did this initially, but I believe I've found a better way. The issues with that approach was it incorrectly added the types to audio worklets and nothing of the type synchronised from the web IDL definitions.
Namespaces in Web IDL are similar to interfaces. A namespace should only be documented in BCD if it contains properties or functions that would normally be documented. For example, the console namespace contains many functions, so it should be documented in BCD. The GPUBufferUsage namespace only contains constants, which should not be documented in BCD; thus, the GPUBufferUsage namespace should not be documented.
Activity
Bashamega commentedon Apr 6, 2026
Hello Chris Couzens (@ccouzens)
For contributing a type that BCD deliberately omits you can add it to the gpu.kdl file
Add GPUBufferUsage to all but audio workers
ccouzens commentedon Apr 11, 2026
Here's my WIP PR
#2469
I did this initially, but I believe I've found a better way. The issues with that approach was it incorrectly added the types to audio worklets and nothing of the type synchronised from the web IDL definitions.
saschanaz commentedon Apr 21, 2026
https://github.com/mdn/browser-compat-data/blob/main/docs/data-guidelines/api.md#namespaces
I... uh... why 🤔
But yes we can override this on our own.
ccouzens commentedon Apr 21, 2026
Thanks Kagami Sascha Rosylight (@saschanaz)
I've got a pr to enable building the types. There were additional changes beyond not ignoring it
https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/2469/changes
It depends on type changes to webidl2, which is why the build currently fails
DefinitelyTyped/DefinitelyTyped#74872
ccouzens commentedon May 7, 2026
The PR to fix this is now ready #2469