Skip to content

Commit

Permalink
fix: uninitialized props should be required
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
metonym committed May 21, 2022
1 parent 5a8fac2 commit c43a774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComponentParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ export default class ComponentParser {
let description: undefined | string = undefined;
let isFunction = false;
let isFunctionDeclaration = false;
let isRequired = false;
let isRequired = init == null;

if (init != null) {
if (
Expand Down

0 comments on commit c43a774

Please sign in to comment.