Skip to content

Commit e8c7625

Browse files
committed
Fix Promise TSDocs
1 parent 09076db commit e8c7625

File tree

1 file changed

+4
-4
lines changed
  • packages/core-js-types/src/base/pure/core-js-types

1 file changed

+4
-4
lines changed

packages/core-js-types/src/base/pure/core-js-types/promise.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ declare namespace CoreJS {
6464

6565
/**
6666
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
67-
* @param values An array or iterable of Promises.
67+
* @param values - An array or iterable of Promises.
6868
* @returns A new Promise.
6969
*/
7070
any<T extends readonly unknown[] | []>(values: T): CoreJSPromise<Awaited<T[number]>>;
7171
/**
7272
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
73-
* @param values An array or iterable of Promises.
73+
* @param values - An array or iterable of Promises.
7474
* @returns A new Promise.
7575
*/
7676
any<T>(values: Iterable<T | CoreJS.CoreJSPromiseLike<T>>): CoreJSPromise<Awaited<T>>;
@@ -79,9 +79,9 @@ declare namespace CoreJS {
7979
* Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
8080
* in a Promise.
8181
*
82-
* @param callbackFn A function that is called synchronously. It can do anything: either return
82+
* @param callbackFn - A function that is called synchronously. It can do anything: either return
8383
* a value, throw an error, or return a promise.
84-
* @param args Additional arguments, that will be passed to the callback.
84+
* @param args - Additional arguments, that will be passed to the callback.
8585
*
8686
* @returns A Promise that is:
8787
* - Already fulfilled, if the callback synchronously returns a value.

0 commit comments

Comments
 (0)