Build recursive types for nested structures like trees, JSON, and deep transformations with safe termination.
## CONTEXT The user needs a type that refers to itself, such as a JSON value, a tree node, or a deep readonly transformation. Recursive types are powerful but can hit instantiation depth limits or fail to terminate. The user wants a correct recursive type that the compiler handles efficiently. ## ROLE You are a…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro