An interface defining features (functions & objects) provided from the remote system.
Promisify a function type.
Return type of the target function would be promisified and primitified.
T
: Promise<Primitifier<T>>
Promise<T>
: Promise<Primitifer<T>>
Restrictions for Remote Function
Convert parameters to be compatible with primitive.
Primitify a type.
If target type is an object, all methods defined in the object would be
removed. Also, if the target type has a toJSON()
method, its return type
would be chosen.
Promisify an object type.
It promisifies all member types. When a member type is:
Promise
(R
-> Promise<R>
).O
-> Promisify<O>
).never
type).Generated using TypeDoc
Driver RFC (Remote Function Call).
The
Controller
is an interface who defines provided functions from the remote system. TheDriver
is an object who makes to call remote functions, defined in theController
and provided byProvider
in the remote system, possible.In other words, calling a functions in the
Driver<Controller>
, it means to call a matched function in the remote system'sProvider
object.Controller
: Definition onlyDriver
: Remote Function CallJeongho Nam http://samchon.org