Skip to content

Commit ee864be

Browse files
fix: mark properties as optional correctly
1 parent 9266db6 commit ee864be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block-parsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const _headingToPropertyBlock = (heading: HeadingContent): PropertyDocume
8888
return {
8989
name: propertyString,
9090
description: parsedDescription,
91-
required: true,
91+
required: /\(optional\)/i.test(parsedDescription),
9292
...parsedReturnType!,
9393
};
9494
};

0 commit comments

Comments
 (0)