mirror of https://github.com/status-im/metro.git
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:
parent
82b508296d
commit
539ddc50f4
|
@ -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>};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue