Add export interface Flow syntax support
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:
```javascript
interface I_ { ... }
export type I = I_;
```
```javascript
export interface I { ... }
```
See facebook/flow#1145
This commit is contained in:
@@ -5,4 +5,6 @@ export type GraphQLFormattedError = {
|
||||
line: number,
|
||||
column: number
|
||||
}>
|
||||
};
|
||||
};
|
||||
export interface foo { p: number }
|
||||
export interface foo<T> { p: T }
|
||||
|
||||
@@ -6,3 +6,5 @@
|
||||
column: number
|
||||
}>
|
||||
};*/
|
||||
/*:: export interface foo { p: number }*/
|
||||
/*:: export interface foo<T> { p: T }*/
|
||||
|
||||
Reference in New Issue
Block a user