Skip to content

Commit 3bbb520

Browse files
Update props.js
1 parent 5d16f62 commit 3bbb520

File tree

1 file changed

+2
-1
lines changed
  • packages/react-native-codegen/src/parsers/typescript/components

1 file changed

+2
-1
lines changed

packages/react-native-codegen/src/parsers/typescript/components/props.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ function buildPropSchema(
489489
typeAnnotation.typeParameters?.params[0].type === 'TSUnionType' &&
490490
typeAnnotation.typeParameters?.params[0].types.some(
491491
element =>
492-
element.type === 'TSNullKeyword' || element.type === 'TSUndefinedKeyword',
492+
element.type === 'TSNullKeyword' ||
493+
element.type === 'TSUndefinedKeyword',
493494
)
494495
) {
495496
optional = true;

0 commit comments

Comments
 (0)