Home > @imqueue/rpc > remote

remote() function

Creates a @remote() method decorator for client classes. The decorated method has the remote method name appended to its arguments and is then forwarded to remoteCall(). The returned decorator is dual-mode: it works both as a standard (TC39) and as a legacy (experimentalDecorators) method decorator.

{Function} - a dual-mode method decorator

Signature:

export declare function remote(): any;

Returns:

any