Skip to content

Commit 132b6f3

Browse files
fix: get the boolean the right way round
1 parent ee864be commit 132b6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block-parsers.ts

+1-1
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: /\(optional\)/i.test(parsedDescription),
91+
required: !/\(optional\)/i.test(parsedDescription),
9292
...parsedReturnType!,
9393
};
9494
};

0 commit comments

Comments
 (0)