Skip to content

Commit

Permalink
Use declare module.exports syntax for flow libdefs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
samwgoldman committed Dec 15, 2017
1 parent cfb7ee1 commit e812632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow-typed/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ declare module "resolve/lib/node-modules-paths" {
moduleDirectory: Array<string>,
};

declare function exports(
declare module.exports: (
path: string,
options: NodeModulesPathsOptions,
): Array<string>;
) => Array<string>;
}

0 comments on commit e812632

Please sign in to comment.