( method: RpcMethod, defCollections: DefinitionCollections, )
| 1804 | } |
| 1805 | |
| 1806 | function getResultTypeName( |
| 1807 | method: RpcMethod, |
| 1808 | defCollections: DefinitionCollections, |
| 1809 | ): string | null { |
| 1810 | const result = method.result as (JSONSchema7 & { $ref?: string }) | null; |
| 1811 | if (!result || isVoidSchema(result)) return null; |
| 1812 | if (typeof result.$ref === "string") { |
| 1813 | return refTypeName(result.$ref, defCollections); |
| 1814 | } |
| 1815 | if (typeof result.title === "string") return result.title; |
| 1816 | return `${toPascalCase(method.rpcMethod)}Result`; |
| 1817 | } |
| 1818 | |
| 1819 | function methodUsesInternalSchema( |
| 1820 | schema: JSONSchema7 | null | undefined, |
no test coverage detected
searching dependent graphs…