Skip to content

Instantly share code, notes, and snippets.

@cartant
Created December 4, 2020 06:36
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 cartant/834ca752ab82143ea74ed5bc48a9f77b to your computer and use it in GitHub Desktop.
Save cartant/834ca752ab82143ea74ed5bc48a9f77b to your computer and use it in GitHub Desktop.
declare function combine<Elements extends unknown[]>(
...inputsAndCountAndDir: [...Inputs<Elements>, number, "left" | "right"]
): Elements[number][];declare function combine<Elements extends unknown[]>(
...inputsAndCount: [...Inputs<Elements>, number]
): Elements[number][];
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