Fix #437: only prohibit 'export type from "module" ' when flow is enabled (#438)

* Only prohibit 'export type' when flow is enabled

* Fix lint
This commit is contained in:
Kevin Gibbons
2017-05-19 01:05:44 -07:00
committed by Daniel Tschinder
parent dcef4012a0
commit 6c4acecf00
6 changed files with 122 additions and 3 deletions

View File

@@ -896,9 +896,7 @@ export default class StatementParser extends ExpressionParser {
isExportDefaultSpecifier(): boolean {
if (this.match(tt.name)) {
return this.state.value !== "type"
&& this.state.value !== "async"
&& this.state.value !== "interface";
return this.state.value !== "async";
}
if (!this.match(tt._default)) {