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:
Sam Goldman
2016-01-05 15:56:04 -08:00
parent 06545e6f70
commit 17d19a0056
8 changed files with 370 additions and 2 deletions

View File

@@ -5,4 +5,6 @@ export type GraphQLFormattedError = {
line: number,
column: number
}>
};
};
export interface foo { p: number }
export interface foo<T> { p: T }

View File

@@ -6,3 +6,5 @@
column: number
}>
};*/
/*:: export interface foo { p: number }*/
/*:: export interface foo<T> { p: T }*/