why does removing an array nest cause this to be a circular dependency?? shouldn't it be functionally the same thing??
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
5 messages · Page 1 of 1 (latest)
why does removing an array nest cause this to be a circular dependency?? shouldn't it be functionally the same thing??
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
to be more clear about the type definition I'm looking for here, it should accept:
[1, [1, 'test']][[1, [1, 'test']], [1, 'test']][[1, [1, 'test']], [[[1, [1, 'test']], [1, 'test']], 'test']][1, [[1, [[[1, [1, 'test']], [[1, [1, 'test']], 'test']], 'test']], 'test']]and so on
basically it starts off with a base [...number[], [...number[], string]]
but any of the ...number[]s can be replaced with the entire expression
recursively