We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2629069 commit 584e37fCopy full SHA for 584e37f
packages/react-native-codegen/src/parsers/typescript/components/props.js
@@ -489,7 +489,8 @@ function buildPropSchema(
489
typeAnnotation.typeParameters?.params[0].type === 'TSUnionType' &&
490
typeAnnotation.typeParameters?.params[0].types.some(
491
element =>
492
- element.type === 'TSNullKeyword' || element.type === 'TSUndefinedKeyword',
+ element.type === 'TSNullKeyword' ||
493
+ element.type === 'TSUndefinedKeyword',
494
)
495
) {
496
optional = true;
0 commit comments