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:
Panagiotis Vekris
2021-01-19 11:55:09 -08:00
committed by Facebook GitHub Bot
parent 9b1f3b16b0
commit d9c84f078d
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -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' {
+1
View File
@@ -101,6 +101,7 @@ module.exports = {
return generate(
ast,
// $FlowFixMe[prop-missing] Error found when improving flow typing for libs
{
code: true,
comments: false,