Skip to content

Commit 03e9e72

Browse files
jmagaramzth
authored andcommitted
fixed data type to proper int or float
1 parent 81d6eeb commit 03e9e72

9 files changed

+18
-20
lines changed

src/typed-arrays/Core__Float32Array.res

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Float32Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array/Float32Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Float32Array"
15+
external fromArray: array<float> => t = "Float32Array"
1616

1717
/** `fromBuffer` creates a `Float32Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array/Float32Array)
1818
@@ -51,5 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Float32Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Float32Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t =
55-
"Float32Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => float) => t = "Float32Array.from"

src/typed-arrays/Core__Float64Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Float64Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array/Float64Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Float64Array"
15+
external fromArray: array<float> => t = "Float64Array"
1616

1717
/** `fromBuffer` creates a `Float64Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array/Float64Array)
1818
@@ -51,5 +51,5 @@ external fromArrayLikeOrIterable: 'a => t = "Float64Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Float64Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t =
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => float) => t =
5555
"Float64Array.from"

src/typed-arrays/Core__Int16Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Int16Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array/Int16Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Int16Array"
15+
external fromArray: array<int> => t = "Int16Array"
1616

1717
/** `fromBuffer` creates a `Int16Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array/Int16Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Int16Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Int16Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Int16Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Int16Array.from"

src/typed-arrays/Core__Int32Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Int32Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array/Int32Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Int32Array"
15+
external fromArray: array<int> => t = "Int32Array"
1616

1717
/** `fromBuffer` creates a `Int32Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array/Int32Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Int32Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Int32Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Int32Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Int32Array.from"

src/typed-arrays/Core__Int8Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Int8Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array/Int8Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Int8Array"
15+
external fromArray: array<int> => t = "Int8Array"
1616

1717
/** `fromBuffer` creates a `Int8Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array/Int8Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Int8Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Int8Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Int8Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Int8Array.from"

src/typed-arrays/Core__Uint16Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Uint16Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array/Uint16Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Uint16Array"
15+
external fromArray: array<int> => t = "Uint16Array"
1616

1717
/** `fromBuffer` creates a `Uint16Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array/Uint16Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Uint16Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Uint16Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Uint16Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Uint16Array.from"

src/typed-arrays/Core__Uint32Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Uint32Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array/Uint32Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Uint32Array"
15+
external fromArray: array<int> => t = "Uint32Array"
1616

1717
/** `fromBuffer` creates a `Uint32Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array/Uint32Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Uint32Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Uint32Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Uint32Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Uint32Array.from"

src/typed-arrays/Core__Uint8Array.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Uint8Array` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Uint8Array"
15+
external fromArray: array<int> => t = "Uint8Array"
1616

1717
/** `fromBuffer` creates a `Uint8Array` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array)
1818
@@ -51,4 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Uint8Array.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Uint8Array` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t = "Uint8Array.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Uint8Array.from"

src/typed-arrays/Core__Uint8ClampedArray.res

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Constants = {
1212
/** `fromArray` creates a `Uint8ClampedArray` from an array of values. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray/Uint8ClampedArray)
1313
*/
1414
@new
15-
external fromArray: array<Core__BigInt.t> => t = "Uint8ClampedArray"
15+
external fromArray: array<int> => t = "Uint8ClampedArray"
1616

1717
/** `fromBuffer` creates a `Uint8ClampedArray` from an `ArrayBuffer.t`. See [TypedArray constructor on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray/Uint8ClampedArray)
1818
@@ -51,5 +51,4 @@ external fromArrayLikeOrIterable: 'a => t = "Uint8ClampedArray.from"
5151
/** `fromArrayLikeOrIterableWithMap` creates a `Uint8ClampedArray` from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See [TypedArray.from on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from)
5252
*/
5353
@val
54-
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => Core__BigInt.t) => t =
55-
"Uint8ClampedArray.from"
54+
external fromArrayLikeOrIterableWithMap: ('a, ('b, int) => int) => t = "Uint8ClampedArray.from"

0 commit comments

Comments
 (0)