fix(codemode): unify catalog signatures (#35452)

This commit is contained in:
Aiden Cline
2026-07-06 00:52:37 -05:00
committed by GitHub
parent 89799155d0
commit 9fd4d93820
12 changed files with 430 additions and 361 deletions
+2 -2
View File
@@ -244,9 +244,9 @@ const renderSchema = (
if (properties.length === 0 && indexType === undefined) return "{}"
const pad = " ".repeat(depth + 1)
const lines = properties.map(
(entry) => `${jsdoc(entry[1].description, docTags(entry[1]), pad)}${pad}${field(entry)}`,
(entry) => `${jsdoc(entry[1].description, docTags(entry[1]), pad)}${pad}${field(entry)},`,
)
if (indexType !== undefined) lines.push(`${pad}[key: string]: ${indexType}`)
if (indexType !== undefined) lines.push(`${pad}[key: string]: ${indexType},`)
return `{\n${lines.join("\n")}\n${" ".repeat(depth)}}`
}
return "unknown"