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

This commit is contained in:
Aiden Cline 2026-07-06 00:52:37 -05:00 committed by GitHub
commit d4f7039932
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 430 additions and 361 deletions

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"