Skip to content

Commit

Permalink
fix: Add space between 'Const' and signature name (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed May 5, 2021
1 parent 52262ba commit 9400803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SignatureReflection } from 'typedoc';

import { memberSymbol } from './member-symbol';
import { type } from './type';

Expand All @@ -14,8 +13,8 @@ export function signatureTitle(
md.push(`${memberSymbol.call(this)} `);
}

if (this.parent && this.parent.flags) {
md.push(this.parent.flags.map((flag) => `\`${flag}\``).join(' '));
if (this.parent && this.parent.flags?.length > 0) {
md.push(this.parent.flags.map((flag) => `\`${flag}\``).join(' ') + ' ');
}

if (accessor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Return comments
`;
exports[`Signatures: should compile signature with a flag' 1`] = `
"▸ \`Private\`**privateFunction**(): *string*
"▸ \`Private\` **privateFunction**(): *string*
**Returns:** *string*
Expand Down Expand Up @@ -221,7 +221,7 @@ This is a function with rest parameter.
`;
exports[`Signatures: should compile signature with type params' 1`] = `
"▸ \`Const\`**functionWithTypeParams**<Item\\\\>(): *boolean*
"▸ \`Const\` **functionWithTypeParams**<Item\\\\>(): *boolean*
#### Type parameters
Expand Down

0 comments on commit 9400803

Please sign in to comment.