Skip to content

Commit

Permalink
fix: Remove params from constructor titles
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Apr 11, 2024
1 parent 06e3097 commit 86e5f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ export function constructor(
const md: string[] = [];

model.signatures?.forEach((signature) => {
const params = signature.parameters?.map((param) => param.name).join(', ');
md.push(
heading(
options.headingLevel,
`${escapeChars(signature.name)}(${params})`,
),
);
md.push(heading(options.headingLevel, `${escapeChars(signature.name)}()`));
md.push(
this.partials.signature(signature, {
headingLevel: options.headingLevel + 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ Comments for ClassWithConstructorOverloads
## Constructors
### new ClassWithConstructorOverloads(x, y)
### new ClassWithConstructorOverloads()
> **new ClassWithConstructorOverloads**(\`x\`, \`y\`): [\`ClassWithConstructorOverloads\`](ClassWithConstructorOverloads.md)
Expand All @@ -378,7 +378,7 @@ Comments for x number
[classes.ts:95](http://source-url)
### new ClassWithConstructorOverloads(x)
### new ClassWithConstructorOverloads()
> **new ClassWithConstructorOverloads**(\`x\`): [\`ClassWithConstructorOverloads\`](ClassWithConstructorOverloads.md)
Expand All @@ -396,7 +396,7 @@ Comments for x string
[classes.ts:100](http://source-url)
### new ClassWithConstructorOverloads(s)
### new ClassWithConstructorOverloads()
> **new ClassWithConstructorOverloads**(\`s\`): [\`ClassWithConstructorOverloads\`](ClassWithConstructorOverloads.md)
Expand All @@ -421,7 +421,7 @@ Comments for ClassWithConstructorOverloads
## Constructors
### new ClassWithConstructorOverloads(x, y)
### new ClassWithConstructorOverloads()
\`\`\`ts
new ClassWithConstructorOverloads(x: number, y: string): ClassWithConstructorOverloads
Expand All @@ -442,7 +442,7 @@ new ClassWithConstructorOverloads(x: number, y: string): ClassWithConstructorOve
[classes.ts:95](http://source-url)
### new ClassWithConstructorOverloads(x)
### new ClassWithConstructorOverloads()
\`\`\`ts
new ClassWithConstructorOverloads(x: string): ClassWithConstructorOverloads
Expand All @@ -462,7 +462,7 @@ new ClassWithConstructorOverloads(x: string): ClassWithConstructorOverloads
[classes.ts:100](http://source-url)
### new ClassWithConstructorOverloads(s)
### new ClassWithConstructorOverloads()
\`\`\`ts
new ClassWithConstructorOverloads(s: string): ClassWithConstructorOverloads
Expand Down

0 comments on commit 86e5f7d

Please sign in to comment.