Skip to content

Commit f2aab8d

Browse files
committed
fix: ensure correct use of generics
1 parent f5c0a5f commit f2aab8d

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/array/complex64/docs/types

1 file changed

+8
-8
lines changed

lib/node_modules/@stdlib/array/complex64/docs/types/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
387387
* var bool = arr.every( predicate );
388388
* // returns true
389389
*/
390-
every<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): boolean;
390+
every<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): boolean;
391391

392392
/**
393393
* Returns a new array containing the elements of an array which pass a test implemented by a predicate function.
@@ -425,7 +425,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
425425
* var im = imagf( z );
426426
* // returns 2.0
427427
*/
428-
filter<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): Complex64Array;
428+
filter<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): Complex64Array;
429429

430430
/**
431431
* Returns the first element in an array for which a predicate function returns a truthy value.
@@ -458,7 +458,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
458458
* var im = imagf( z );
459459
* // returns 1.0
460460
*/
461-
find<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): Complex64 | void;
461+
find<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): Complex64 | void;
462462

463463
/**
464464
* Returns the index of the first element in an array for which a predicate function returns a truthy value.
@@ -485,7 +485,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
485485
* var idx = arr.findIndex( predicate );
486486
* // returns 2
487487
*/
488-
findIndex<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): number;
488+
findIndex<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): number;
489489

490490
/**
491491
* Returns the last element in an array for which a predicate function returns a truthy value.
@@ -518,7 +518,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
518518
* var im = imagf( z );
519519
* // returns 3.0
520520
*/
521-
findLast<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): Complex64 | void;
521+
findLast<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): Complex64 | void;
522522

523523
/**
524524
* Returns the index of the last element in an array for which a predicate function returns a truthy value.
@@ -545,7 +545,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
545545
* var idx = arr.findLastIndex( predicate );
546546
* // returns 1
547547
*/
548-
findLastIndex<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): number;
548+
findLastIndex<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): number;
549549

550550
/**
551551
* Invokes a function once for each array element.
@@ -572,7 +572,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
572572
* // => 1: 2 + 2i
573573
* // => 2: 3 + 3i
574574
*/
575-
forEach<U = unknown>( fcn: Callback, thisArg?: ThisParameterType<Callback<U>> ): void;
575+
forEach<U = unknown>( fcn: Callback<U>, thisArg?: ThisParameterType<Callback<U>> ): void;
576576

577577
/**
578578
* Returns an array element.
@@ -760,7 +760,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
760760
* var bool = arr.some( predicate );
761761
* // returns true
762762
*/
763-
some<U = unknown>( predicate: Predicate, thisArg?: ThisParameterType<Predicate<U>> ): boolean;
763+
some<U = unknown>( predicate: Predicate<U>, thisArg?: ThisParameterType<Predicate<U>> ): boolean;
764764

765765
/**
766766
* Creates a new typed array view over the same underlying `ArrayBuffer` and with the same underlying data type as the host array.

0 commit comments

Comments
 (0)