Skip to content

Commit 0aaab65

Browse files
committed
Pass typesInOwnModule to Value
1 parent 5db3fc6 commit 0aaab65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/components/apidoc.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (values.length > 0) {
5252
values.length > 0 && (
5353
<>
5454
<h2 id="values">Values</h2>
55-
{values.map((value) => <Value value={value} />)}
55+
{values.map((value) => <Value value={value} typesInOwnModule={typesInOwnModule} />)}
5656
</>
5757
)
5858
}

docs/components/value.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { Code } from "@astrojs/starlight/components";
33
import SignatureItem from "./signatureItem.astro";
4-
const { value } = Astro.props;
4+
const { value, typesInOwnModule } = Astro.props;
55
const details = value.detail?.details || null;
66
77
function showValue(detail) {
@@ -19,10 +19,10 @@ function showValue(detail) {
1919
<div class="value_detail">
2020
<h4>Parameters</h4>
2121
{details.parameters.map((p) => (
22-
<SignatureItem item={p} />
22+
<SignatureItem item={p} typesInOwnModule={typesInOwnModule} />
2323
))}
2424
<h4>Return type</h4>
25-
<SignatureItem item={details.returnType} />
25+
<SignatureItem item={details.returnType} typesInOwnModule={typesInOwnModule} />
2626
</div>
2727
)
2828
}

0 commit comments

Comments
 (0)