2723. Add Two Promises ¶ TypeScript 1 2 3 4 5 6type P = Promise<number>; async function addTwoPromises(promise1: P, promise2: P): P { const results = await Promise.all([promise1, promise2]); return results[0] + results[1]; } Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.