Union representing property keys of the controlled properties.
The target object type. Must have all keys in Properties
.
The target object.
The property key.
The proxy object.
Rest
...args: any[]The arguments passed to the function.
The result of the handler function.
The handler function is called when a disabled controlled member of target
is accessed (i.e. an internal get
operation).
Type parameters will be inferred from the function definition. It should not be necessary to provide them explicitly.
Params target
, p
, and receiver
provide runtime context and are the same as the get
method of a ProxyHandler
.
When not provided, this function defaults to () => undefined
.
If the underlying member is a function, the handler fuction will be called with appropriate target
, p
, and receiver
values, along with any provided args
.
If the underlying member is not a function, the handler function will be called with appropriate target
, p
, and receiver
values, and no args
and its result returned.
Handler function for a disabled controlled proxy object member.