(node: Record<string, unknown>)
| 655 | |
| 656 | // Generate factory functions |
| 657 | function hasInternalMethods(node: Record<string, unknown>): boolean { |
| 658 | for (const value of Object.values(node)) { |
| 659 | if (isRpcMethod(value)) { |
| 660 | if ((value as RpcMethod).visibility === "internal") return true; |
| 661 | } else if (typeof value === "object" && value !== null) { |
| 662 | if (hasInternalMethods(value as Record<string, unknown>)) return true; |
| 663 | } |
| 664 | } |
| 665 | return false; |
| 666 | } |
| 667 | |
| 668 | if (schema.server) { |
| 669 | lines.push(`/** Create typed server-scoped RPC methods (no session required). */`); |
no test coverage detected
searching dependent graphs…