Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It鈥檚 ugly, but it gets the job done. And it unblocks my babel-type changes.
- Loading branch information
1 parent
c6edce1
commit 7854441
Showing
9 changed files
with
94 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ class X { | |
/*:: a: number*/ | ||
|
||
/*:: b: ?string*/ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ class X { | |
bar | ||
/*: number*/ | ||
= 3; | ||
|
||
/*:: baz: ?string*/ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ class C | |
function f | ||
/*:: <+T, -U>*/ | ||
() {} | ||
|
||
/*:: type T<+T, -U> = {};*/ | ||
/*:: type T<+T, -U> = {};*/ |
1 change: 1 addition & 0 deletions
1
.../babel-plugin-transform-flow-comments/test/fixtures/flow-comments/import-export/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...abel-plugin-transform-flow-comments/test/fixtures/flow-comments/import-export/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/*:: export type { A } from './types';*/ | ||
import lib from 'library'; | ||
export { foo } from 'foo'; | ||
|
||
/*:: export type { B, C } from './types';*/ | ||
/*:: export type { B, C } from './types';*/ |
5 changes: 3 additions & 2 deletions
5
...el-plugin-transform-flow-comments/test/fixtures/flow-comments/import-type-alias/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import lib from 'library'; | ||
import type A, { B, C } from './types'; | ||
import typeof D, { E, F } from './types'; | ||
import lib from 'library'; | ||
import type D from './types'; | ||
import typeof E, { F, G } from './types'; |
6 changes: 3 additions & 3 deletions
6
...-plugin-transform-flow-comments/test/fixtures/flow-comments/import-type-alias/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import lib from 'library'; | ||
|
||
/*:: import type A, { B, C } from './types';*/ | ||
import lib from 'library'; | ||
/*:: import type D from './types';*/ | ||
|
||
/*:: import typeof D, { E, F } from './types';*/ | ||
/*:: import typeof E, { F, G } from './types';*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters