Skip to content

Instantly share code, notes, and snippets.

@cartant
Created December 4, 2020 06:33
Show Gist options
  • Save cartant/f89c142bca569f6ef8a8d3ebd691f1b5 to your computer and use it in GitHub Desktop.
Save cartant/f89c142bca569f6ef8a8d3ebd691f1b5 to your computer and use it in GitHub Desktop.
type Inputs<Elements> = {
[Key in keyof Elements]: readonly Elements[Key][];
};
declare function combine<Elements extends unknown[]>(
...inputs: [...Inputs<Elements>]
): Elements[number][];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment