Pre-suppress errors ahead of 0.261.1 release in xplat

Summary: Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D69610953

fbshipit-source-id: 3eec28d72e26c2f48542523dd610590e298eba69
This commit is contained in:
Sam Zhou
2025-02-13 13:04:53 -08:00
committed by Facebook GitHub Bot
parent d98116aa44
commit a1eb6de691
4 changed files with 4 additions and 0 deletions
@@ -92,6 +92,7 @@ Diff: ${chalk.dim.underline(newVersion?.diffUrl ?? 'none')}
// $FlowFixMe
function isDiffPurgeEntry(data: Partial<DiffPurge>): data is DiffPurge {
return (
// $FlowFixMe[incompatible-type-guard]
[data.name, data.zipball_url, data.tarball_url, data.node_id].filter(
e => typeof e !== 'undefined',
).length === 0
@@ -26,6 +26,7 @@ export function isPlainObject(
and ReactElement checks preserve the type refinement of `value`. */
): value is $ReadOnly<{[string]: mixed}> {
return (
// $FlowFixMe[incompatible-type-guard]
value !== null &&
typeof value === 'object' &&
Object.getPrototypeOf(value).isPrototypeOf(Object) &&
@@ -39,5 +39,6 @@ export function isReactNativeDocumentInstanceHandle(
instanceHandle: mixed,
// $FlowExpectedError[incompatible-type-guard]
): instanceHandle is ReactNativeDocumentInstanceHandle {
// $FlowFixMe[incompatible-type-guard]
return typeof instanceHandle === 'number' && instanceHandle % 10 === 1;
}
+1
View File
@@ -66,6 +66,7 @@ function validateBuildType(
const validBuildTypes = new Set(['release', 'dry-run', 'nightly']);
// $FlowFixMe[incompatible-return]
// $FlowFixMe[incompatible-type-guard]
return validBuildTypes.has(buildType);
}