-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow] More permissive what's allowed in declare namespace and declar…
…e module Summary: Right now, Flow complains about `export type` and `export interface` in `declare module` and `declare namespace` for no good reason. It is mostly a leftover of the past when the parser only permits `declare` statements in these body. This diff removes the restriction from Flow. Changelog: [feature] `export type Foo = ...` and `export interface Bar {...}` statements are now allowed in `declare module` and `declare namespace` bodies. Reviewed By: panagosg7 Differential Revision: D54989486 fbshipit-source-id: 5d27b88df2f6cde02cb8754c65589bb5dbba2fbd
- Loading branch information
1 parent
cbd056f
commit 518a328
Showing
11 changed files
with
352 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.