mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
misc Flow library fixes & suppressions
Summary: The current version of Flow fails to report some errors in library definitions. I'm working on a Flow fix that would surface these errors. In preparation for this, this diff: * replaces `FbtErrorListener` (missing) with `IFbtErrorListener` in fbt.js * fixes typos in several files * suppresses missing names with `[cannot-resolve-name]` * adds `sourceMapTarget` option in babel-generator Changelog: [Internal] Reviewed By: jbrown215 Differential Revision: D25839533 fbshipit-source-id: 947207db9238aa10663616d59080440d2ac6f243
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9b1f3b16b0
commit
d9c84f078d
Vendored
+3
-3
@@ -4,15 +4,15 @@
|
||||
*/
|
||||
|
||||
declare module 'promise/setimmediate/es6-extensions' {
|
||||
declare module.exports: Class<Promise>;
|
||||
declare module.exports: typeof Promise;
|
||||
}
|
||||
|
||||
declare module 'promise/setimmediate/done' {
|
||||
declare module.exports: Class<Promise>;
|
||||
declare module.exports: typeof Promise;
|
||||
}
|
||||
|
||||
declare module 'promise/setimmediate/finally' {
|
||||
declare module.exports: Class<Promise>;
|
||||
declare module.exports: typeof Promise;
|
||||
}
|
||||
|
||||
declare module 'promise/setimmediate/rejection-tracking' {
|
||||
|
||||
@@ -101,6 +101,7 @@ module.exports = {
|
||||
|
||||
return generate(
|
||||
ast,
|
||||
// $FlowFixMe[prop-missing] Error found when improving flow typing for libs
|
||||
{
|
||||
code: true,
|
||||
comments: false,
|
||||
|
||||
Reference in New Issue
Block a user