Skip to content

Commit d4f6577

Browse files
committed
Fix imageData.data type
1 parent 067a895 commit d4f6577

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/DOMAPI.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3020,7 +3020,7 @@ and htmlCollectionOf<'t> = {
30203020
}
30213021

30223022
/**
3023-
A collection of HTML form control elements.
3023+
A collection of HTML form control elements.
30243024
[See HTMLFormControlsCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
30253025
*/
30263026
@editor.completeFrom(HTMLFormControlsCollection) and htmlFormControlsCollection = {
@@ -9403,7 +9403,7 @@ type imageData = {
94039403
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
94049404
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/data)
94059405
*/
9406-
data: array<int>,
9406+
data: Uint8ClampedArray.t,
94079407
/**
94089408
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
94099409
*/

src/DOMAPI/ImageData.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ external make: (~sw: int, ~sh: int, ~settings: imageDataSettings=?) => imageData
1111
*/
1212
@new
1313
external make2: (
14-
~data: array<int>,
14+
~data: Uint8ClampedArray.t,
1515
~sw: int,
1616
~sh: int=?,
1717
~settings: imageDataSettings=?,

0 commit comments

Comments
 (0)