@@ -831,7 +831,7 @@ extern "C" {
831
831
/// array into a new typed array object. This method has the same algorithm
832
832
/// as `Array.prototype.slice()`.
833
833
#[ wasm_bindgen( method) ]
834
- pub fn slice ( this : & Float32Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
834
+ pub fn slice ( this : & Float32Array , begin : u32 , end : u32 ) -> Float32Array ;
835
835
836
836
/// The `forEach()` method executes a provided function once per array
837
837
/// element. This method has the same algorithm as
@@ -920,7 +920,7 @@ extern "C" {
920
920
/// array into a new typed array object. This method has the same algorithm
921
921
/// as `Array.prototype.slice()`.
922
922
#[ wasm_bindgen( method) ]
923
- pub fn slice ( this : & Float64Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
923
+ pub fn slice ( this : & Float64Array , begin : u32 , end : u32 ) -> Float64Array ;
924
924
925
925
/// The `forEach()` method executes a provided function once per array
926
926
/// element. This method has the same algorithm as
@@ -1144,7 +1144,7 @@ extern "C" {
1144
1144
/// array into a new typed array object. This method has the same algorithm
1145
1145
/// as `Array.prototype.slice()`.
1146
1146
#[ wasm_bindgen( method) ]
1147
- pub fn slice ( this : & Int8Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
1147
+ pub fn slice ( this : & Int8Array , begin : u32 , end : u32 ) -> Int8Array ;
1148
1148
1149
1149
/// The `forEach()` method executes a provided function once per array
1150
1150
/// element. This method has the same algorithm as
@@ -1233,7 +1233,7 @@ extern "C" {
1233
1233
/// array into a new typed array object. This method has the same algorithm
1234
1234
/// as `Array.prototype.slice()`.
1235
1235
#[ wasm_bindgen( method) ]
1236
- pub fn slice ( this : & Int16Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
1236
+ pub fn slice ( this : & Int16Array , begin : u32 , end : u32 ) -> Int16Array ;
1237
1237
1238
1238
/// The `forEach()` method executes a provided function once per array
1239
1239
/// element. This method has the same algorithm as
@@ -1322,7 +1322,7 @@ extern "C" {
1322
1322
/// array into a new typed array object. This method has the same algorithm
1323
1323
/// as `Array.prototype.slice()`.
1324
1324
#[ wasm_bindgen( method) ]
1325
- pub fn slice ( this : & Int32Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
1325
+ pub fn slice ( this : & Int32Array , begin : u32 , end : u32 ) -> Int32Array ;
1326
1326
1327
1327
/// The `forEach()` method executes a provided function once per array
1328
1328
/// element. This method has the same algorithm as
@@ -3111,7 +3111,7 @@ extern "C" {
3111
3111
/// array into a new typed array object. This method has the same algorithm
3112
3112
/// as `Array.prototype.slice()`.
3113
3113
#[ wasm_bindgen( method) ]
3114
- pub fn slice ( this : & Uint8Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
3114
+ pub fn slice ( this : & Uint8Array , begin : u32 , end : u32 ) -> Uint8Array ;
3115
3115
3116
3116
/// The `forEach()` method executes a provided function once per array
3117
3117
/// element. This method has the same algorithm as
@@ -3291,7 +3291,7 @@ extern "C" {
3291
3291
/// array into a new typed array object. This method has the same algorithm
3292
3292
/// as `Array.prototype.slice()`.
3293
3293
#[ wasm_bindgen( method) ]
3294
- pub fn slice ( this : & Uint16Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
3294
+ pub fn slice ( this : & Uint16Array , begin : u32 , end : u32 ) -> Uint16Array ;
3295
3295
3296
3296
/// The `forEach()` method executes a provided function once per array
3297
3297
/// element. This method has the same algorithm as
@@ -3380,7 +3380,7 @@ extern "C" {
3380
3380
/// array into a new typed array object. This method has the same algorithm
3381
3381
/// as `Array.prototype.slice()`.
3382
3382
#[ wasm_bindgen( method) ]
3383
- pub fn slice ( this : & Uint32Array , begin : u32 , end : u32 ) -> Uint8ClampedArray ;
3383
+ pub fn slice ( this : & Uint32Array , begin : u32 , end : u32 ) -> Uint32Array ;
3384
3384
3385
3385
/// The `forEach()` method executes a provided function once per array
3386
3386
/// element. This method has the same algorithm as
0 commit comments