Summary
Unclear on how GPUBufferUsage namespace types should be automated as not in BCD
Expected vs. Actual Behavior
Expected: GPUBufferUsage in Typescript 6.0.2
Actual:
src/renderers/webGPU.ts:73:14 - error TS2304: Cannot find name 'GPUBufferUsage'.
73 usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST,
~~~~~~~~~~~~~~
src/renderers/webGPU.ts:73:39 - error TS2304: Cannot find name 'GPUBufferUsage'.
73 usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST,
~~~~~~~~~~~~~~
Playground Link
https://www.typescriptlang.org/play/?#code/OIBQqgQgrgZjCmAnMBnAhgc3gOgMoBUB5AJQEFgBRIA
Browser Support
Have Tried The Latest Releases
Additional Context
The namespace is documented here.
It is well supported by Firefox (excluding some platforms), Chrome, Safari.
I understand from the contributor documentation that https://github.com/mdn/browser-compat-data drives this repo:
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.
However https://github.com/mdn/browser-compat-data/blob/v7.3.10/docs/data-guidelines/api.md#namespaces calls out GPUBufferUsage as deliberately undocumented:
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?
Summary
Unclear on how GPUBufferUsage namespace types should be automated as not in BCD
Expected vs. Actual Behavior
Expected:
GPUBufferUsagein Typescript 6.0.2Actual:
Playground Link
https://www.typescriptlang.org/play/?#code/OIBQqgQgrgZjCmAnMBnAhgc3gOgMoBUB5AJQEFgBRIA
Browser Support
Have Tried The Latest Releases
@types/web.Additional Context
The namespace is documented here.
It is well supported by Firefox (excluding some platforms), Chrome, Safari.
I understand from the contributor documentation that https://github.com/mdn/browser-compat-data drives this repo:
However https://github.com/mdn/browser-compat-data/blob/v7.3.10/docs/data-guidelines/api.md#namespaces calls out
GPUBufferUsageas deliberately undocumented:What is the process for contributing a type that BCD deliberately omits?