We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422fd07 commit de911cdCopy full SHA for de911cd
1 file changed
server/utils/docs/render.ts
@@ -306,9 +306,10 @@ function renderClassMembers(def: NonNullable<DenoDocNode['classDef']>): string {
306
const modStr = modifiers.length > 0 ? `${modifiers.join(' ')} ` : ''
307
const type = formatType(prop.tsType)
308
const opt = prop.optional ? '?' : ''
309
+ const typeStr = type ? `: ${type}` : ''
310
311
return {
- signature: `${modStr}${prop.name}${opt}: ${type}`,
312
+ signature: `${modStr}${prop.name}${opt}${typeStr}`,
313
description: prop.jsDoc?.doc,
314
}
315
})
0 commit comments