Returns a proxy for the given Api
or ClientApi
. Accessing a property A
of it will return proxify(api.route(A))
. Calling the proxy with an argument B
will return api.close(B)
.
When the properties then
and catch
of the proxy are accessed they will not be translated into route
calls but passed through to api
directly instead.
Returns
A proxified version of the given Api.
- Type
- Proxy
Methods
(static) revert(proxy) → {Api|ClientApi}
Reverts the proxify function.