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

@@ -98,3 +98,5 @@ import type, { foo } from "bar";
import type * as namespace from "bar";
export type { foo };
export type { foo } from "bar";
export interface foo { p: number };
export interface foo<T> { p: T };

View File

@@ -102,3 +102,5 @@ import type, { foo } from "bar";
import type * as namespace from "bar";
export type { foo };
export type { foo } from "bar";
export interface foo { p: number };
export interface foo<T> { p: T };