Skip to content

Commit

Permalink
fix: input should be strictly an array of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
yamcodes committed Sep 13, 2024
1 parent d0fafa8 commit 04e44e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/cartesianProduct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* // ]
* ```
*/
export function cartesianProduct<T extends any[]>(
export function cartesianProduct<T extends any[][]>(
...arrays: [...T]
): Array<{ [K in keyof T]: T[K][number] }>
export function cartesianProduct<T extends any[][]>(...arrays: T): T[][] {
Expand Down

0 comments on commit 04e44e8

Please sign in to comment.