Skip to content

Commit

Permalink
fix: mark properties as optional correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 2, 2019
1 parent 9266db6 commit ee864be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block-parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const _headingToPropertyBlock = (heading: HeadingContent): PropertyDocume
return {
name: propertyString,
description: parsedDescription,
required: true,
required: /\(optional\)/i.test(parsedDescription),
...parsedReturnType!,
};
};
Expand Down

0 comments on commit ee864be

Please sign in to comment.