From 662115077a9d7dab260ec93d89c7ca02145a47f8 Mon Sep 17 00:00:00 2001 From: George Zahariev Date: Fri, 28 Oct 2022 17:40:26 -0700 Subject: [PATCH] Fix some issues exposed when making function statics sealed Reviewed By: SamChou19815 Differential Revision: D40736389 fbshipit-source-id: a3e1c3f5723081bf76e2dbdb637b4deb7a54e180 --- Libraries/Image/resolveAssetSource.js | 6 ++---- Libraries/Utilities/differ/deepDiffer.js | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Libraries/Image/resolveAssetSource.js b/Libraries/Image/resolveAssetSource.js index f15395386cd835..8848a0f18c10e4 100644 --- a/Libraries/Image/resolveAssetSource.js +++ b/Libraries/Image/resolveAssetSource.js @@ -105,8 +105,6 @@ function resolveAssetSource(source: any): ?ResolvedAssetSource { return resolver.defaultAsset(); } +resolveAssetSource.pickScale = pickScale; +resolveAssetSource.setCustomSourceTransformer = setCustomSourceTransformer; module.exports = resolveAssetSource; -// $FlowFixMe[prop-missing] -module.exports.pickScale = pickScale; -// $FlowFixMe[prop-missing] -module.exports.setCustomSourceTransformer = setCustomSourceTransformer; diff --git a/Libraries/Utilities/differ/deepDiffer.js b/Libraries/Utilities/differ/deepDiffer.js index e46fd6cad93c39..b0af0244a65487 100644 --- a/Libraries/Utilities/differ/deepDiffer.js +++ b/Libraries/Utilities/differ/deepDiffer.js @@ -97,6 +97,5 @@ const deepDiffer = function ( return false; }; +deepDiffer.unstable_setLogListeners = unstable_setLogListeners; module.exports = deepDiffer; -// $FlowFixMe[prop-missing] -module.exports.unstable_setLogListeners = unstable_setLogListeners;