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:
Wuli authored and Michaël Zasso committed 2024-10-02 07:57:48 +02:00
1 parent b6ed97c66d
commit b5bf08f31e
1 file changed
+1 -1
+1 -1
View File
@@ -461,7 +461,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.
*/