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 13, 2022
1 parent 5d16f62 commit 3bbb520
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 3bbb520

Please sign in to comment.