Skip to content

Commit

Permalink
Update www-shared libs to enforce empty array providers
Browse files Browse the repository at this point in the history
Reviewed By: SamChou19815

Differential Revision: D41206399

fbshipit-source-id: 594718e8dbe61d1748c251d9091ed63c84a65856
  • Loading branch information
pieterv authored and facebook-github-bot committed Nov 11, 2022
1 parent 9264855 commit e57befd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const plugins = [
'@babel/plugin-syntax-class-properties',
];

const presets = [];
const presets /*: Array<string> */ = [];

function getConfig(api /*: any */) /*: BabelCoreOptions */ {
api.cache.never();
Expand Down
2 changes: 1 addition & 1 deletion packages/metro/src/HmrServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class HmrServer<TClient: Client> {

this._clientGroups.set(id, clientGroup);

let latestEventArgs = [];
let latestEventArgs: Array<any> = [];

const debounceCallHandleFileChange = debounceAsyncQueue(async () => {
await this._handleFileChange(
Expand Down
2 changes: 1 addition & 1 deletion packages/metro/src/lib/__tests__/getPreludeCode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const vm = require('vm');
describe(`${mode} mode`, () => {
const isDev = mode === 'development';
const globalPrefix = '__metro';
const requireCycleIgnorePatterns = [];
const requireCycleIgnorePatterns: Array<RegExp> = [];

it('sets up `process.env.NODE_ENV` and `__DEV__`', () => {
const sandbox: $FlowFixMe = {};
Expand Down

0 comments on commit e57befd

Please sign in to comment.