TypeScript Meta-programming and Proxies

We all want our code to read like a sentence. There is a certain beauty in an API that just flows, where the intent is obvious and the boilerplate is non-existent.

In languages like Rust, we have powerful tools to achieve this. We have Macros. Macros allow us to write code that writes other code at compile time. It's meta-programming in its truest sense. You can…