I have a Promise-based Nodejs-function that I want to call from a normal function (not an async function).
Therefore, I would like to create a wrapper function that is synchronous (returning T
instead of returning Promise<T>
).
How would you solve this with Nodejs?