@@ -59,11 +59,13 @@ module ArrayBuffer = {
5959 @bs.send.pipe (: t ) external slice : (~start : int , ~end_ : int ) => array_buffer = "slice" /* FIXME */
6060 @bs.send.pipe (: t ) external sliceFrom : int => array_buffer = "slice"
6161}
62+
63+ type typed_array <'a >
64+
6265module type S = {
6366 /*** Implements functionality common to all the typed arrays */
6467
6568 type elt
66- type typed_array <'a >
6769 type t = typed_array <elt >
6870
6971 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -173,7 +175,6 @@ module type S = {
173175module Int8Array = {
174176 /** */
175177 type elt = int
176- type typed_array <'a > = Js_typed_array2 .Int8Array .typed_array <'a >
177178 type t = typed_array <elt >
178179
179180 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -296,7 +297,6 @@ module Int8Array = {
296297module Uint8Array = {
297298 /** */
298299 type elt = int
299- type typed_array <'a > = Js_typed_array2 .Uint8Array .typed_array <'a >
300300 type t = typed_array <elt >
301301
302302 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -419,7 +419,6 @@ module Uint8Array = {
419419module Uint8ClampedArray = {
420420 /** */
421421 type elt = int
422- type typed_array <'a > = Js_typed_array2 .Uint8ClampedArray .typed_array <'a >
423422 type t = typed_array <elt >
424423
425424 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -542,7 +541,6 @@ module Uint8ClampedArray = {
542541module Int16Array = {
543542 /** */
544543 type elt = int
545- type typed_array <'a > = Js_typed_array2 .Int16Array .typed_array <'a >
546544 type t = typed_array <elt >
547545
548546 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -665,7 +663,6 @@ module Int16Array = {
665663module Uint16Array = {
666664 /** */
667665 type elt = int
668- type typed_array <'a > = Js_typed_array2 .Uint16Array .typed_array <'a >
669666 type t = typed_array <elt >
670667
671668 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -788,7 +785,6 @@ module Uint16Array = {
788785module Int32Array = {
789786 /** */
790787 type elt = int
791- type typed_array <'a > = Js_typed_array2 .Int32Array .typed_array <'a >
792788 type t = typed_array <elt >
793789
794790 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -914,7 +910,6 @@ module Int32_array = Int32Array
914910module Uint32Array = {
915911 /** */
916912 type elt = int
917- type typed_array <'a > = Js_typed_array2 .Uint32Array .typed_array <'a >
918913 type t = typed_array <elt >
919914
920915 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -1040,7 +1035,6 @@ module Uint32Array = {
10401035module Float32Array = {
10411036 /** */
10421037 type elt = float
1043- type typed_array <'a > = Js_typed_array2 .Float32Array .typed_array <'a >
10441038 type t = typed_array <elt >
10451039
10461040 @get_index external unsafe_get : (t , int ) => elt = ""
@@ -1167,7 +1161,6 @@ module Float32_array = Float32Array
11671161module Float64Array = {
11681162 /** */
11691163 type elt = float
1170- type typed_array <'a > = Js_typed_array2 .Float64Array .typed_array <'a >
11711164 type t = typed_array <elt >
11721165
11731166 @get_index external unsafe_get : (t , int ) => elt = ""
0 commit comments