(path: (string | number)[])
| 707 | } |
| 708 | |
| 709 | function formatIssuePath(path: (string | number)[]): string { |
| 710 | if (path.length === 0) return "(root)"; |
| 711 | return path.reduce<string>((out, part) => { |
| 712 | if (typeof part === "number") return `${out}[${part}]`; |
| 713 | return out ? `${out}.${part}` : part; |
| 714 | }, ""); |
| 715 | } |