Created
March 23, 2021 19:28
-
-
Save eamonnboyle/eb900d44eb60e39d67038971bdc7f325 to your computer and use it in GitHub Desktop.
Promise All with Variadic Tuple Parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function promiseAll<T extends [...any[]]>(promises: [...T]): RemapPromises<T> { | |
return Promise.all(promises) as RemapPromises<T>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment