rpc
rpc(
config
?): (target
,key
,descriptor
) =>void
The rpc
function is a TypeScript decorator that adds metadata and configuration options to Composer singleton.
Parameters
• config?: MethodConfig
The config
parameter is an optional object that contains
configuration options for the rpc
function. It has the following properties:
Returns
Function
The rpc
function returns a new function that takes three arguments: target
, key
, and
descriptor
.
Parameters
• target:
Target
• key:
PropKey
• descriptor:
PropertyDescriptor
Returns
void