Use `declare module.exports` syntax for flow libdefs

Summary:
**Summary**

We added this to Flow in v0.25 (about 2 years ago), but never actually
deprecated the legacy `declare var exports` syntax. Hoping to do that
soon, so clearing up uses that I can find.

**Test plan**

flow
Closes https://github.com/facebook/metro/pull/108

Reviewed By: cpojer

Differential Revision: D6577785

Pulled By: samwgoldman

fbshipit-source-id: 2ef499cebb70ce3d9312cca6e084815394ab6169
This commit is contained in:
Sam Goldman 2017-12-15 02:31:53 -08:00 committed by Facebook Github Bot
parent 82b508296d
commit 539ddc50f4
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ type RawMapping = {
declare module 'babel-generator' {
declare type RawMapping = RawMapping;
declare function exports(
declare module.exports: (
ast: Ast,
options?: GeneratorOptions,
): TransformResult & {rawMappings: ?Array<RawMapping>};
) => TransformResult & {rawMappings: ?Array<RawMapping>};
}