diff --git a/scripts/js-api/build-types/transforms/typescript/simplifyTypes/resolveIntersection.js b/scripts/js-api/build-types/transforms/typescript/simplifyTypes/resolveIntersection.js index fd3577c456f..f87633af703 100644 --- a/scripts/js-api/build-types/transforms/typescript/simplifyTypes/resolveIntersection.js +++ b/scripts/js-api/build-types/transforms/typescript/simplifyTypes/resolveIntersection.js @@ -84,13 +84,11 @@ export function resolveIntersection( continue; } - // $FlowExpectedError[sketchy-null-bool] Missing prop is the same as false - if (!prop.optional) { + if (prop.optional !== true) { requiredKeys.add(key); } - // $FlowExpectedError[sketchy-null-bool] Missing prop is the same as false - if (!prop.readonly) { + if (prop.readonly !== true) { mutableKeys.add(key); }