Skip to content

Commit 2bb4efe

Browse files
committed
feat: improve type specificity for thisArg
1 parent 83b8979 commit 2bb4efe

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/utils/until/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/until/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/**
2222
* Checks whether an iteration number passes a test.
@@ -51,7 +51,7 @@ type Predicate = ( i: number ) => boolean;
5151
*
5252
* until( predicate, beep );
5353
*/
54-
declare function until( fcn: Function, predicate: Predicate, thisArg?: any ): void; // tslint:disable-line: max-line-length
54+
declare function until<T extends Function>( fcn: T, predicate: Predicate, thisArg?: ThisParameterType<T> ): void;
5555

5656

5757
// EXPORTS //

0 commit comments

Comments
 (0)