(methodName: string, method: RpcMethod, fallbackVerb = "calls")
| 265 | } |
| 266 | |
| 267 | function goMethodDocSummary(methodName: string, method: RpcMethod, fallbackVerb = "calls"): string { |
| 268 | const description = method.description?.trim(); |
| 269 | if (!description) return `${methodName} ${fallbackVerb} ${method.rpcMethod}.`; |
| 270 | if (description.startsWith(methodName)) return description; |
| 271 | return `${methodName} ${lowerFirst(description)}`; |
| 272 | } |
| 273 | |
| 274 | function goRpcResultDescription(method: RpcMethod, resultSchema: JSONSchema7 | undefined): string | undefined { |
| 275 | if (isVoidSchema(resultSchema)) return undefined; |
no test coverage detected
searching dependent graphs…