Skip to content

Commit

Permalink
Update props.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen-MSFT committed Jul 9, 2022
1 parent a728765 commit 86a9a55
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ function buildPropSchema(
typeAnnotation.typeParameters?.params[0].type === 'TSUnionType' &&
typeAnnotation.typeParameters?.params[0].types.some(
element =>
element.type === 'TSNullKeyword' || element.type === 'TSUndefinedKeyword',
element.type === 'TSNullKeyword' ||
element.type === 'TSUndefinedKeyword',
)
) {
optional = true;
Expand Down

0 comments on commit 86a9a55

Please sign in to comment.