Skip to content

Commit f67d20f

Browse files
committed
TypeScript: Fix remark-auto-type-table doesn't render required property
1 parent 460d0ce commit f67d20f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/empty-lights-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fumadocs-typescript': patch
3+
---
4+
5+
Fix `remark-auto-type-table` doesn't render `required` property

packages/typescript/src/lib/remark-auto-type-table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async function mapProperty(
2121
const value = valueToEstree({
2222
type: entry.type,
2323
default: entry.tags.default || entry.tags.defaultValue,
24+
required: entry.required,
2425
}) as ObjectExpression;
2526

2627
if (entry.description) {

0 commit comments

Comments
 (0)