Options
All
  • Public
  • Public/Protected
  • All
Menu

Module rpc-descriptor-types

The descriptors are used to describe what properties/functions to expose on an object and what are the function return behaviors.

Index

Type aliases

AnyConstructor: new (...args: any[]) => any

Type declaration

    • new (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

AnyFunction: (...args: any[]) => any

Type declaration

    • (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

ClassDescriptors: {}

Type declaration

FunctionDescriptors: {}

Type declaration

FunctionReturnBehavior: "sync" | "async" | "void"

Function return behaviors are the following:

  • sync - the proxy function will return the result synchronously (works only if the channel supports synchronous communication)
  • async - the proxy function will return a Promise (works only if the channel supports asynchronous communication)
  • void - the return value is ignored and no result message is sent
see

RPCChannel

ObjectDescriptors: {}

Type declaration

Functions

  • getPropName(descriptor: string | { name?: string }): string

Generated using TypeDoc