Skip to content

Commit

Permalink
Fix type errors in ComponentApiBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Aug 23, 2022
1 parent bb15423 commit 518da0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/ApiBuilders/ComponentApiBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ async function annotateComponentDefinition(api: ReactApi) {
.join('\n')}`,
);
}
if (jsdocBlock != null) {
if (jsdocBlock?.start != null && jsdocBlock?.end != null) {
start = jsdocBlock.start;
end = jsdocBlock.end;
} else if (node.start !== null) {
} else if (node.start != null) {
start = node.start - 1;
end = start;
}
Expand Down

0 comments on commit 518da0a

Please sign in to comment.