(lines: string[], indent: string, entries: string[])
| 67 | } |
| 68 | |
| 69 | function pushTsJsDoc(lines: string[], indent: string, entries: string[]): void { |
| 70 | const cleaned = entries.map(sanitizeJsDocText).filter((entry) => entry.length > 0); |
| 71 | if (cleaned.length === 0) return; |
| 72 | |
| 73 | lines.push(`${indent}/**`); |
| 74 | for (const [index, entry] of cleaned.entries()) { |
| 75 | if (index > 0) { |
| 76 | lines.push(`${indent} *`); |
| 77 | } |
| 78 | for (const line of entry.split(/\r?\n/)) { |
| 79 | lines.push(`${indent} * ${line}`); |
| 80 | } |
| 81 | } |
| 82 | lines.push(`${indent} */`); |
| 83 | } |
| 84 | |
| 85 | function rpcResultDescription(method: RpcMethod): string | undefined { |
| 86 | const resultSchema = getMethodResultSchema(method); |
no test coverage detected
searching dependent graphs…