I'm trying to make a type that uses recursion. I'm not sure the rules around recursion, I found some Stackoverflow posts on the topic, but they are all several years old and from what I understand rules around recursion have changed since then. I have created a playground, linked below, which highlights my current code, the errors it has, and what my goal is for this type. Thanks for any help, even if its just to tell me its impossible.
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.