Skip to content

Commit

Permalink
Suppress Flow type errors for node-fetch
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[Internal] Suppress all flow type errors for node-fetch

Reviewed By: jsgreenf

Differential Revision: D47081830

fbshipit-source-id: af9df005fc53a75a1562128c52b99abccfbe7e1e
  • Loading branch information
Jiaqi Duan authored and facebook-github-bot committed Jul 6, 2023
1 parent 19e6185 commit 4ff164d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/metro-inspector-proxy/src/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ class Device {
throw new Error('remote fetches not permitted');
}

// $FlowFixMe[incompatible-call] Suppress arvr node-fetch flow error
const response = await fetch(url);
const text = await response.text();
// Restrict the length to well below the 500MB limit for nodejs (leaving
Expand Down

0 comments on commit 4ff164d

Please sign in to comment.