UNPKG

@protobuf-ts/runtime-rpc

Version:

Runtime library for RPC clients generated by the protoc plugin "protobuf-ts"

9 lines (8 loc) 321 B
import { normalizeMethodInfo } from "./reflection-info"; export class ServiceType { constructor(typeName, methods, options) { this.typeName = typeName; this.methods = methods.map(i => normalizeMethodInfo(i, this)); this.options = options !== null && options !== void 0 ? options : {}; } }