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] ImageData constructor missing type Float16Array #2107
I states that ImageData.data might be a Float16Array. It returns ImageDataArray, but the definition doesn't contain Float16Array. This is closely related since the definition of ImageDataArray is still wrong here. Interestingly @webref/idl has this since 3.61.4
Maybe a manual change is needed to reflect the current comment?
#2320 is somewhat related and already has been merged, even though Safari hasn't enabled it by default (as of merging). I assume having a API change shipped by default isn't actually required, having it implemented is sufficient.
Activity
Bashamega commentedon Aug 6, 2025
Hello cmahnke
Once BCD adds it, it will be added
cmahnke commentedon Aug 19, 2025
Adam Naji (@Bashamega) Are you sure it is working that way? I'm asking because the documentation comment already has the proposed change, see https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.generated.d.ts#L19070
I states that
ImageData.datamight be aFloat16Array. It returnsImageDataArray, but the definition doesn't containFloat16Array. This is closely related since the definition ofImageDataArrayis still wrong here. Interestingly@webref/idlhas this since 3.61.4Maybe a manual change is needed to reflect the current comment?
In any case there is a BCD issue now
Bashamega commentedon Aug 19, 2025
If it is implemented here, then wait until typescript updates it
cmahnke commentedon Aug 26, 2025
Just an update:
PR mdn/browser-compat-data#27661 which closed mdn/browser-compat-data#27547 has been merged into min and will certainly be in the next release.
Should I create a PR to remove https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/inputfiles/removedTypes.jsonc#L401-L407 ?
cmahnke commentedon May 11, 2026
#2320 is somewhat related and already has been merged, even though Safari hasn't enabled it by default (as of merging). I assume having a API change shipped by default isn't actually required, having it implemented is sufficient.