Skip to main content
Version: Next

SimpleProxy

SimpleProxy

Represents a simple proxy object that mirrors a target object.

Signature
interface SimpleProxy<T extends object> {
proxy: T;
setTarget(newTarget: T): void;
}

proxy

property
T

The proxied object that mirrors the target.

setTarget

method
(newTarget: T) => void

Sets a new target object for the proxy.