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 f1e07c6 commit 4f8354eCopy full SHA for 4f8354e
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