Y
Hacker News
new
|
ask
|
show
|
jobs
by
sli
211 days ago
You're missing the input type, essentially. Those are just array types. The TypeScript type signature more of a function type, it expresses flattening a n-dimensional array (input type) into a flat array (output type).