@@ -185,19 +185,19 @@ interface Int8Array {
185
185
/**
186
186
* Copies the array and returns the copy with the elements in reverse order.
187
187
*/
188
- toReversed ( ) : Uint8Array ;
188
+ toReversed ( ) : Int8Array ;
189
189
190
190
/**
191
191
* Copies and sorts the array.
192
192
* @param compareFn Function used to determine the order of the elements. It is expected to return
193
193
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
194
194
* value otherwise. If omitted, the elements are sorted in ascending order.
195
195
* ```ts
196
- * const myNums = Uint8Array .from([11, 2, 22, 1]);
197
- * myNums.toSorted((a, b) => a - b) // Uint8Array (4) [1, 2, 11, 22]
196
+ * const myNums = Int8Array .from([11, 2, 22, 1]);
197
+ * myNums.toSorted((a, b) => a - b) // Int8Array (4) [1, 2, 11, 22]
198
198
* ```
199
199
*/
200
- toSorted ( compareFn ?: ( a : number , b : number ) => number ) : Uint8Array ;
200
+ toSorted ( compareFn ?: ( a : number , b : number ) => number ) : Int8Array ;
201
201
202
202
/**
203
203
* Copies the array and inserts the given number at the provided index.
@@ -206,7 +206,7 @@ interface Int8Array {
206
206
* @param value The value to insert into the copied array.
207
207
* @returns A copy of the original array with the inserted value.
208
208
*/
209
- with ( index : number , value : number ) : Uint8Array ;
209
+ with ( index : number , value : number ) : Int8Array ;
210
210
}
211
211
212
212
interface Uint8Array {
0 commit comments