diff --git a/scripts/apidocs/processing/jsdocs.ts b/scripts/apidocs/processing/jsdocs.ts index 0999abca845..41c1b84af6e 100644 --- a/scripts/apidocs/processing/jsdocs.ts +++ b/scripts/apidocs/processing/jsdocs.ts @@ -50,7 +50,11 @@ export function getParameterTags(jsdocs: JSDoc): Record { } export function getDefault(jsdocs: JSDoc): string | undefined { - return getOptionalTagFromJSDoc(jsdocs, `default`); + return ( + getOptionalTagFromJSDoc(jsdocs, `default`) + // Prevent line breaks between the key and the value { foo: 'bar' } + ?.replaceAll(': ', ': ') + ); } export function getThrows(jsdocs: JSDoc): string[] {