8000 Auto-generated commit · stdlib-js/utils-until@92bc59c · GitHub
[go: up one dir, main page]

Skip to content

Commit 92bc59c

Browse files
committed
Auto-generated commit
1 parent f2a37d1 commit 92bc59c

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,25 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-09-17)
7+
## Unreleased (2024-09-20)
8+
9+
<section class="bug-fixes">
10+
11+
### Bug Fixes
12+
13+
- [`506bdcc`](https://github.com/stdlib-js/stdlib/commit/506bdccd0841d8c1e56df5587de6c32c2c7ec498) - use correct parameter ordering in TS
14+
15+
</section>
16+
17+
<!-- /.bug-fixes -->
818

919
<section class="commits">
1020

1121
### Commits
1222

1323
<details>
1424

25+
- [`506bdcc`](https://github.com/stdlib-js/stdlib/commit/506bdccd0841d8c1e56df5587de6c32c2c7ec498) - **fix:** use correct parameter ordering in TS _(by Philipp Burckhardt)_
1526
- [`cadb613`](https://github.com/stdlib-js/stdlib/commit/cadb6131d6ce50338d11757e88e8a910a0367983) - **chore:** update argument documentation styling _(by Philipp Burckhardt)_
1627

1728
</details>

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Joey Reed <joeyrreed@gmail.com>
4040
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
4141
Joris Labie <joris.labie1@gmail.com>
4242
Justin Dennison <justin1dennison@gmail.com>
43+
Kaif Mohd <mdkaifprofession@gmail.com>
4344
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
4445
Khaldon <kahmd1444@gmail.com>
4546
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Predicate = ( i: number ) => boolean;
5151
*
5252
* until( predicate, beep );
5353
*/
54-
declare function until<T extends Function>( fcn: T, predicate: Predicate, thisArg?: ThisParameterType<T> ): void;
54+
declare function until<T extends Function>( predicate: Predicate, fcn: T, thisArg?: ThisParameterType<T> ): void;
5555

5656

5757
// EXPORTS //

docs/types/test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function predicate( i: number ): boolean {
3131
/**
3232
* Empty function.
3333
*/
34-
function noop() {
34+
function noop(): void {
3535
// Body is empty...
3636
}
3737

@@ -40,32 +40,32 @@ function noop() {
4040

4141
// The function does not return a value...
4242
{
43-
until( noop, predicate ); // $ExpectType void
44-
until( noop, predicate, {} ); // $ExpectType void
43+
until( predicate, noop ); // $ExpectType void
44+
until( predicate, noop, {} ); // $ExpectType void
4545
}
4646

4747
// The compiler throws an error if the function is provided a first argument which is not a function...
4848
{
49-
until( 'abc', predicate ); // $ExpectError
50-
until( 5, predicate ); // $ExpectError
51-
until( true, predicate ); // $ExpectError
52-
until( false, predicate ); // $ExpectError
53-
until( [], predicate ); // $ExpectError
54-
until( {}, predicate ); // $ExpectError
49+
until( 'abc', noop ); // $ExpectError
50+
until( 5, noop ); // $ExpectError
51+
until( true, noop ); // $ExpectError
52+
until( false, noop ); // $ExpectError
53+
until( [], noop ); // $ExpectError
54+
until( {}, noop ); // $ExpectError
5555
}
5656

5757
// The compiler throws an error if the function is provided a second argument which is not a function...
5858
{
59-
until( noop, 'abc' ); // $ExpectError
60-
until( noop, 5 ); // $ExpectError
61-
until( noop, true ); // $ExpectError
62-
until( noop, false ); // $ExpectError
63-
until( noop, [] ); // $ExpectError
64-
until( noop, {} ); // $ExpectError
59+
until( predicate, 'abc' ); // $ExpectError
60+
until( predicate, 5 ); // $ExpectError
61+
until( predicate, true ); // $ExpectError
62+
until( predicate, false ); // $ExpectError
63+
until( predicate, [] ); // $ExpectError
64+
until( predicate, {} ); // $ExpectError
6565
}
6666

6767
// The compiler throws an error if the function is provided fewer than two arguments...
6868
{
6969
until(); // $ExpectError
70-
until( noop ); // $ExpectError
70+
until( predicate ); // $ExpectError
7171
}

0 commit comments

Comments
 (0)
0