Before TypeScript 4.3 (released in 2021), runtime validation was a pain. A proxy using Reflect.set could enforce types dynamically.
Here's an example of how you might use a proxy to implement a simple cache: proxy made with reflect 4 2021
In this context, a "proxy made with Reflect" is a way to intercept and customize operations on objects (like getting or setting properties) while using the Reflect object to maintain the original default behavior. 1. Understand the Relationship Before TypeScript 4
: The Proxy catches an action, such as getting a property value ( get trap). Before TypeScript 4.3 (released in 2021)
In 2021, Java developers commonly needed proxies for: