diff --git a/src/@types/typed-arrays.ts b/src/@types/typed-arrays.ts index 226bed898cc..860b8bf0557 100644 --- a/src/@types/typed-arrays.ts +++ b/src/@types/typed-arrays.ts @@ -210,8 +210,7 @@ interface PartialUint8Array extends Uint8Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericUint8Array extends PartialUint8Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericUint8Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues.... @@ -255,8 +254,7 @@ interface PartialUint16Array extends Uint16Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericUint16Array extends PartialUint16Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericUint16Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues.... @@ -300,8 +298,7 @@ interface PartialUint32Array extends Uint32Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericUint32Array extends PartialUint32Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericUint32Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues.... @@ -345,8 +342,7 @@ interface PartialInt8Array extends Int8Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericInt8Array extends PartialInt8Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericInt8Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues.... @@ -390,8 +386,7 @@ interface PartialInt16Array extends Int16Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericInt16Array extends PartialInt16Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericInt16Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues.... @@ -435,8 +430,7 @@ interface PartialInt32Array extends Int32Array { * Useful to leverage the benefits of `TypedArrays` without losing type information. Typescript will consider the elements to be of type `T` instead of just `number`. * @typeParam T - The specific numeric type of the elements in the array. */ -// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific -// in a way that makes typescript unhappy +// @ts-expect-error - These methods _will_ error, as we are overriding the return type to be more specific in a way that makes typescript unhappy export interface GenericInt32Array extends PartialInt32Array { // map(callbackfn: (value: T, index: number, array: this) => T, thisArg?: any): GenericInt32Array; // this method does not trigger a typescript error on its own, but if we add in `toReversed` it causes issues....