Created
December 4, 2020 06:33
-
-
Save cartant/f89c142bca569f6ef8a8d3ebd691f1b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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