UNPKG

rpc_ts

Version:

Remote Procedure Calls in TypeScript made simple

14 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("../../common"); /** Whether a service method is unary. */ function isUnaryMethod(methodDefinition, _methodHandler) { return !methodDefinition.type; } exports.isUnaryMethod = isUnaryMethod; /** Whether a service method is a server stream. */ function isServerStreamMethod(methodDefinition, _methodHandler) { return (methodDefinition.type === common_1.ModuleRpcCommon.ServiceMethodType.serverStream); } exports.isServerStreamMethod = isServerStreamMethod; //# sourceMappingURL=helpers.js.map