typings: correct param type of SafePromisePrototypeFinally
PR-URL: https://github.com/nodejs/node/pull/54727 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
parent
cb747d360e
commit
5949e169bd
@ -462,7 +462,7 @@ const SafePromise = makeSafe(
|
||||
* rejected). The resolved value cannot be modified from the callback.
|
||||
* Prefer using async functions when possible.
|
||||
* @param {Promise<any>} thisPromise
|
||||
* @param {() => void) | undefined | null} onFinally The callback to execute
|
||||
* @param {(() => void) | undefined | null} onFinally The callback to execute
|
||||
* when the Promise is settled (fulfilled or rejected).
|
||||
* @returns {Promise} A Promise for the completion of the callback.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user