Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created March 23, 2021 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eamonnboyle/eb900d44eb60e39d67038971bdc7f325 to your computer and use it in GitHub Desktop.
Save eamonnboyle/eb900d44eb60e39d67038971bdc7f325 to your computer and use it in GitHub Desktop.
Promise All with Variadic Tuple Parameters
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