Sometimes I get bored at work, and so I mess around with the TypeScript typing engine. And sometimes I use JSON.parse(JSON.stringify(x))
as a quick and dirty deep clone (not performant, mind you). Rather than getting any
, I want to infer the shape of the result.
So, here ya go. Enjoy. TS Playground