Skip to content

Commit 9d2a457

Browse files
knoanclaude
andcommitted
Apply formatting fixes
Fix dprint formatting issues in modified files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 11f7bed commit 9d2a457

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,8 +1786,7 @@ This will be the last v0.27.x release, see #2868 for discussion on the 0.28 beta
17861786

17871787
### Features
17881788

1789-
- Added `--htmlLang` option to set the [
1790-
`lang`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute in the generated HTML.
1789+
- Added `--htmlLang` option to set the [`lang`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute in the generated HTML.
17911790
Defaults to `en`, #1951.
17921791
- Added `--basePath` option to override TypeDoc's detected root directory, #1924.
17931792
- Added support for TypeDoc specific `:getter` and `:setter` meaning keywords in declaration references.
@@ -1878,7 +1877,7 @@ This will be the last v0.27.x release, see #2868 for discussion on the 0.28 beta
18781877
- Added new `commentStyle` option which can be used to control what comments TypeDoc will parse.
18791878

18801879
| Value | Behavior |
1881-
| ----- | -------------------------------------- |
1880+
| ----- | -------------------------------------- |
18821881
| JSDoc | Use block comments starting with `/**` |
18831882
| Block | Use all block comments |
18841883
| Line | Use `//` comments |
@@ -2166,9 +2165,9 @@ This will be the last v0.27.x release, see #2868 for discussion on the 0.28 beta
21662165
}
21672166
```
21682167
- The `--emit` option can now be used to more finely control what TypeDoc will emit. | Value |
2169-
Behavior | | ------- | ----------------------------------------------------------------------- | | `both` | Emit both
2170-
documentation and JS. | | `docs` | Emit documentation, but not JS (default). | | `none` | Emit nothing, just convert
2171-
and run validation. | | `true` | Alias for `both`, for backwards compatibility. Will be removed in 0.23. | |
2168+
Behavior | | ------- | ----------------------------------------------------------------------- | | `both` | Emit both
2169+
documentation and JS. | | `docs` | Emit documentation, but not JS (default). | | `none` | Emit nothing, just convert
2170+
and run validation. | | `true` | Alias for `both`, for backwards compatibility. Will be removed in 0.23. | |
21722171
`false` | Alias for `docs`, for backwards compatibility. Will be removed in 0.23. |
21732172

21742173
### Bug Fixes

src/lib/output/themes/default/partials/moduleReflection.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,20 @@ export function moduleMemberSummary(
120120
return (
121121
<li class="tsd-signature">
122122
<a href={signatureUrl} class="tsd-signature-link">
123-
<span class="tsd-signature-keyword">function </span>
123+
<span class="tsd-signature-keyword">function</span>
124124
<span class="tsd-signature-symbol">{member.name}</span>
125125
{context.memberSignatureTitle(sig, { hideName: true })}
126126
</a>
127-
{sig.comment?.getShortSummary(context.options.getValue("useFirstParagraphOfCommentAsSummary"))?.some((part) => part.text) && (
128-
<div class="tsd-comment">{context.displayParts(sig.comment.getShortSummary(context.options.getValue("useFirstParagraphOfCommentAsSummary")))}</div>
127+
{sig.comment?.getShortSummary(
128+
context.options.getValue("useFirstParagraphOfCommentAsSummary"),
129+
)?.some((part) => part.text) && (
130+
<div class="tsd-comment">
131+
{context.displayParts(
132+
sig.comment.getShortSummary(
133+
context.options.getValue("useFirstParagraphOfCommentAsSummary"),
134+
),
135+
)}
136+
</div>
129137
)}
130138
</li>
131139
);

src/lib/output/themes/default/templates/reflection.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,14 @@ export function reflectionTemplate(context: DefaultThemeRenderContext, props: Pa
6666
{props.model.signatures.map((sig) => {
6767
const anchor = context.getAnchor(sig);
6868
const shortSummary = sig.comment?.getShortSummary(
69-
context.options.getValue("useFirstParagraphOfCommentAsSummary")
69+
context.options.getValue("useFirstParagraphOfCommentAsSummary"),
7070
);
7171
return (
7272
<li>
73-
<a href={anchor ? `#${anchor}` : undefined} class="tsd-overload-summary-link">
73+
<a
74+
href={anchor ? `#${anchor}` : undefined}
75+
class="tsd-overload-summary-link"
76+
>
7477
<code class="tsd-overload-signature">
7578
{context.memberSignatureTitle(sig, { hideName: false })}
7679
</code>

0 commit comments

Comments
 (0)