mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
d98116aa44
commit
a1eb6de691
@@ -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) &&
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user