Polyfill for Promise.withResolvers. Once node 22 is the minimum version, this should be removed.
Return type for resolve.
An object containing a new Promise object and two functions to resolve or reject it, corresponding to the two parameters passed to the executor of the Promise() constructor.
Polyfill for Promise.withResolvers. Once node 22 is the minimum version, this should be removed.