Is there a way to use varadic arguments to recurse a type?
So like
pluck({a: {b: 2}}, "a", "b")
will be type safe and can somehow store the state of that type?3 Replies
I know I could do
something(v).pluck(x).pluck(y)
but I am not a fan of that
I was able to write this and this works for the arguments
the return type may not be possible, at least I wasn't able to figure it out
oh this seems really helpful in debugging the return type, thank you!