8000 Auto-generated commit · stdlib-js/utils-async-if-then@238542b · GitHub
[go: up one dir, main page]

Skip to content

Commit 238542b

Browse files
committed
Auto-generated commit
1 parent bc2fdf6 commit 238542b

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

CONTRIBUTORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aditya Sapra <110766802+adityacodes30@users.noreply.github.com>
56
Ali Salesi <ali_sal1381@yahoo.com>
67
Amit Jimiwal <amitjimiwal45@gmail.com>
78
Athan Reines <kgryte@gmail.com>
@@ -13,6 +14,7 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
1314
Dominik Moritz <domoritz@gmail.com>
1415
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
1516
Frank Kovacs <fran70kk@gmail.com>
17+
GUNJ JOSHI <gunjjoshi8372@gmail.com>
1618
Harshita Kalani <harshitakalani02@gmail.com>
1719
James Gelok <jdgelok@gmail.com>
1820
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
@@ -21,6 +23,7 @@ Joey Reed <joeyrreed@gmail.com>
2123
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
2224
Joris Labie <joris.labie1@gmail.com>
2325
Justin Dennison <justin1dennison@gmail.com>
26+
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
2427
Marcus Fantham <mfantham@users.noreply.github.com>
2528
Matt Cochrane 8000 <matthew.cochrane.eng@gmail.com>
2629
Milan Raj <rajsite@users.noreply.github.com>
@@ -36,6 +39,7 @@ Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
3639
Ryan Seal <splrk@users.noreply.github.com>
3740
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
3841
Shraddheya Shendre <shendreshraddheya@gmail.com>
42+
Spandan Barve <114365550+marsian83@users.noreply.github.com>
3943
Stephannie Jiménez Gacha <steff456@hotmail.com>
4044
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
4145
orimiles5 <97595296+orimiles5@users.noreply.github.com>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
301301
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-if-then.svg
302302
[npm-url]: https://npmjs.org/package/@stdlib/utils-async-if-then
303303

304-
[test-image]: https://github.com/stdlib-js/utils-async-if-then/actions/workflows/test.yml/badge.svg?branch=v0.2.1
305-
[test-url]: https://github.com/stdlib-js/utils-async-if-then/actions/workflows/test.yml?query=branch:v0.2.1
304+
[test-image]: https://github.com/stdlib-js/utils-async-if-then/actions/workflows/test.yml/badge.svg?branch=main
305+
[test-url]: https://github.com/stdlib-js/utils-async-if-then/actions/workflows/test.yml?query=branch:main
306306

307307
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-if-then/main.svg
308308
[coverage-url]: https://codecov.io/github/stdlib-js/utils-async-if-then?branch=main

docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param error - encountered error or null
2525
* @param args - results
2626
*/
27-
type Callback = ( error: Error | null, ...args: Array<any> ) => void;
27+
type Callback<T> = ( error: Error | null, ...args: Array<T> ) => void;
2828

2929
/**
3030
* Predicate callback function.
@@ -66,7 +66,7 @@ type Predicate = ( clbk: PredicateCallback ) => void;
6666
*
6767
* @param clbk - callback to invoke upon function completion
6868
*/
69-
type ResultFunction = ( clbk: Callback ) => void;
69+
type ResultFunction<T> = ( clbk: Callback<T> ) => void;
7070

7171
/**
7272
* If a predicate function returns a truthy value, invokes `x`; otherwise, invokes `y`.
@@ -108,7 +108,7 @@ type ResultFunction = ( clbk: Callback ) => void;
108108
* }
109109
* ifthenAsync( predicate, x, y, done );
110110
*/
111-
declare function ifthenAsync( predicate: Predicate, x: ResultFunction, y: ResultFunction, done: Callback ): void;
111+
declare function ifthenAsync<T, U = T, V = T>( predicate: Predicate, x: ResultFunction<T>, y: ResultFunction<U>, done: Callback<V> ): void;
112112

113113

114114
// EXPORTS //

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
"@stdlib/string-format": "^0.2.1"
4242
},
4343
"devDependencies": {
44-
"@stdlib/assert-is-nan": "^0.2.0",
45-
"@stdlib/math-base-special-ceil": "^0.2.0",
44+
"@stdlib/assert-is-nan": "^0.2.1",
45+
"@stdlib/math-base-special-ceil": "^0.2.1",
4646
"@stdlib/random-base-randu": "^0.2.0",
47-
"@stdlib/string-repeat": "^0.2.0",
47+
"@stdlib/string-repeat": "^0.2.1",
4848
"@stdlib/utils-noop": "^0.2.1",
4949
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5050
"istanbul": "^0.4.1",
5151
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
52-
"@stdlib/bench-harness": "^0.2.0"
52+
"@stdlib/bench-harness": "^0.2.1"
5353
},
5454
"engines": {
5555
"node": ">=0.10.0",

0 commit comments

Comments
 (0)
0