@@ -59,11 +59,13 @@ module ArrayBuffer = {
59
59
@bs.send.pipe (: t ) external slice : (~start : int , ~end_ : int ) => array_buffer = "slice" /* FIXME */
60
60
@bs.send.pipe (: t ) external sliceFrom : int => array_buffer = "slice"
61
61
}
62
+
63
+ type typed_array <'a >
64
+
62
65
module type S = {
63
66
/*** Implements functionality common to all the typed arrays */
64
67
65
68
type elt
66
- type typed_array <'a >
67
69
type t = typed_array <elt >
68
70
69
71
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -173,7 +175,6 @@ module type S = {
173
175
module Int8Array = {
174
176
/** */
175
177
type elt = int
176
- type typed_array <'a > = Js_typed_array2 .Int8Array .typed_array <'a >
177
178
type t = typed_array <elt >
178
179
179
180
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -296,7 +297,6 @@ module Int8Array = {
296
297
module Uint8Array = {
297
298
/** */
298
299
type elt = int
299
- type typed_array <'a > = Js_typed_array2 .Uint8Array .typed_array <'a >
300
300
type t = typed_array <elt >
301
301
302
302
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -419,7 +419,6 @@ module Uint8Array = {
419
419
module Uint8ClampedArray = {
420
420
/** */
421
421
type elt = int
422
- type typed_array <'a > = Js_typed_array2 .Uint8ClampedArray .typed_array <'a >
423
422
type t = typed_array <elt >
424
423
425
424
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -542,7 +541,6 @@ module Uint8ClampedArray = {
542
541
module Int16Array = {
543
542
/** */
544
543
type elt = int
545
- type typed_array <'a > = Js_typed_array2 .Int16Array .typed_array <'a >
546
544
type t = typed_array <elt >
547
545
548
546
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -665,7 +663,6 @@ module Int16Array = {
665
663
module Uint16Array = {
666
664
/** */
667
665
type elt = int
668
- type typed_array <'a > = Js_typed_array2 .Uint16Array .typed_array <'a >
669
666
type t = typed_array <elt >
670
667
671
668
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -788,7 +785,6 @@ module Uint16Array = {
788
785
module Int32Array = {
789
786
/** */
790
787
type elt = int
791
- type typed_array <'a > = Js_typed_array2 .Int32Array .typed_array <'a >
792
788
type t = typed_array <elt >
793
789
794
790
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -914,7 +910,6 @@ module Int32_array = Int32Array
914
910
module Uint32Array = {
915
911
/** */
916
912
type elt = int
917
- type typed_array <'a > = Js_typed_array2 .Uint32Array .typed_array <'a >
918
913
type t = typed_array <elt >
919
914
920
915
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -1040,7 +1035,6 @@ module Uint32Array = {
1040
1035
module Float32Array = {
1041
1036
/** */
1042
1037
type elt = float
1043
- type typed_array <'a > = Js_typed_array2 .Float32Array .typed_array <'a >
1044
1038
type t = typed_array <elt >
1045
1039
1046
1040
@get_index external unsafe_get : (t , int ) => elt = ""
@@ -1167,7 +1161,6 @@ module Float32_array = Float32Array
1167
1161
module Float64Array = {
1168
1162
/** */
1169
1163
type elt = float
1170
- type typed_array <'a > = Js_typed_array2 .Float64Array .typed_array <'a >
1171
1164
type t = typed_array <elt >
1172
1165
1173
1166
@get_index external unsafe_get : (t , int ) => elt = ""
0 commit comments