Jerko Steiner cc2f5f58e2 Add ability to specify jsonrpc context as extra argument
In this case the interface does not define context, but the implementing
service may use it as an optional argument:

  interface IService {
    add(a: number, b: number): number
  }

  class Service implements IService {
    add(a: number, b: number, ctx?: IContext): number {
      return a + b + ctx!.userId
    }
  }
2019-08-06 20:10:38 +07:00
..
2019-08-06 18:29:58 +07:00
2019-07-31 07:19:22 +08:00
2019-07-31 07:19:22 +08:00
2019-08-06 18:29:58 +07:00
2019-04-02 15:09:47 +08:00