diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidocs/processing/jsdocs.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/apidocs/processing/jsdocs.ts b/scripts/apidocs/processing/jsdocs.ts index 0999abca..41c1b84a 100644 --- a/scripts/apidocs/processing/jsdocs.ts +++ b/scripts/apidocs/processing/jsdocs.ts @@ -50,7 +50,11 @@ export function getParameterTags(jsdocs: JSDoc): Record<string, JSDocTag> { } 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[] { |
