mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Run codemod removing annotations nested inside of destructuring
Summary: Annotations inside of destructuring (e.g. `const [foo: number] = ...`) are invalid Flow syntax. We currently ignore them, and in the future will error on them (D35304565). Remove them using the codemod from D35390352 Locally changed WWW_ROOT, FLOW_ROOTS, and excluded paths in scripts/typedjs/flow/runner.config.js (e.g. P492224584) - and then ``` scripts/typedjs/flow/runner codemod removeAnnotationsInDestructuring ~/fbsource/xplat/js ``` formatting files didn't work, so do it manually Changelog: [Internal] drop-conflicts Reviewed By: fred2028 Differential Revision: D35419146 fbshipit-source-id: e4c05506ceec11afcc8e92f13f732510ebabdbc3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
98071f736a
commit
08d3af994a
@@ -292,7 +292,7 @@ function registerBundleEntryPoints(client) {
|
||||
|
||||
function flushEarlyLogs(client) {
|
||||
try {
|
||||
pendingLogs.forEach(([level: LogLevel, data: Array<mixed>]) => {
|
||||
pendingLogs.forEach(([level, data]) => {
|
||||
HMRClient.log(level, data);
|
||||
});
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user