(method: RpcMethod, innerSchema: JSONSchema7)
| 468 | } |
| 469 | |
| 470 | function goNullableResultTypeName(method: RpcMethod, innerSchema: JSONSchema7): string { |
| 471 | if (innerSchema.$ref) { |
| 472 | const refName = innerSchema.$ref.split("/").pop(); |
| 473 | if (refName) return toPascalCase(refName); |
| 474 | } |
| 475 | return getRpcSchemaTypeName(innerSchema, toPascalCase(method.rpcMethod) + "Result"); |
| 476 | } |
| 477 | |
| 478 | function goParamsTypeName(method: RpcMethod): string { |
| 479 | const fallback = goRequestFallbackName(method); |
no test coverage detected
searching dependent graphs…