(content: string, indent: string)
| 61 | } |
| 62 | |
| 63 | export function indentBlock(content: string, indent: string): string { |
| 64 | if (indent.length === 0) { |
| 65 | return content |
| 66 | } |
| 67 | return content |
| 68 | .split("\n") |
| 69 | .map((line) => line.length === 0 ? line : `${indent}${line}`) |
| 70 | .join("\n") |
| 71 | } |
| 72 | |
| 73 | export type CodegenDefaults = Partial<Record<string, Record<string, unknown>>> |
| 74 |
no test coverage detected
searching dependent graphs…