Skip to content

Commit

Permalink
Pass typesInOwnModule to Value
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 25, 2024
1 parent 5db3fc6 commit 0aaab65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/components/apidoc.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (values.length > 0) {
values.length > 0 && (
<>
<h2 id="values">Values</h2>
{values.map((value) => <Value value={value} />)}
{values.map((value) => <Value value={value} typesInOwnModule={typesInOwnModule} />)}
</>
)
}
Expand Down
6 changes: 3 additions & 3 deletions docs/components/value.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { Code } from "@astrojs/starlight/components";
import SignatureItem from "./signatureItem.astro";
const { value } = Astro.props;
const { value, typesInOwnModule } = Astro.props;
const details = value.detail?.details || null;
function showValue(detail) {
Expand All @@ -19,10 +19,10 @@ function showValue(detail) {
<div class="value_detail">
<h4>Parameters</h4>
{details.parameters.map((p) => (
<SignatureItem item={p} />
<SignatureItem item={p} typesInOwnModule={typesInOwnModule} />
))}
<h4>Return type</h4>
<SignatureItem item={details.returnType} />
<SignatureItem item={details.returnType} typesInOwnModule={typesInOwnModule} />
</div>
)
}
Expand Down

0 comments on commit 0aaab65

Please sign in to comment.