@@ -203,19 +203,19 @@ interface Int8Array {
203203 /**
204204 * Copies the array and returns the copy with the elements in reverse order.
205205 */
206- toReversed ( ) : Uint8Array ;
206+ toReversed ( ) : Int8Array ;
207207
208208 /**
209209 * Copies and sorts the array.
210210 * @param compareFn Function used to determine the order of the elements. It is expected to return
211211 * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
212212 * value otherwise. If omitted, the elements are sorted in ascending order.
213213 * ```ts
214- * const myNums = Uint8Array .from([11, 2, 22, 1]);
215- * myNums.toSorted((a, b) => a - b) // Uint8Array (4) [1, 2, 11, 22]
214+ * const myNums = Int8Array .from([11, 2, 22, 1]);
215+ * myNums.toSorted((a, b) => a - b) // Int8Array (4) [1, 2, 11, 22]
216216 * ```
217217 */
218- toSorted ( compareFn ?: ( a : number , b : number ) => number ) : Uint8Array ;
218+ toSorted ( compareFn ?: ( a : number , b : number ) => number ) : Int8Array ;
219219
220220 /**
221221 * Copies the array and inserts the given number at the provided index.
@@ -224,7 +224,7 @@ interface Int8Array {
224224 * @param value The value to insert into the copied array.
225225 * @returns A copy of the original array with the inserted value.
226226 */
227- with ( index : number , value : number ) : Uint8Array ;
227+ with ( index : number , value : number ) : Int8Array ;
228228}
229229
230230interface Uint8Array {
0 commit comments