* Only prohibit 'export type' when flow is enabled * Fix lint
This commit is contained in:
committed by
Daniel Tschinder
parent
dcef4012a0
commit
6c4acecf00
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user