-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c77d994
commit 6cdba5c
Showing
2 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* important! this file is only to ensure we parse files with Flow annotation | ||
* properly. The formatting of typeAnnotation should be handled by an external | ||
* plugin since not all users will require this feature and implementation is | ||
* pretty complex. | ||
* @flow | ||
*/ | ||
function foo(a: string, b: number): void { | ||
return a + String(b); | ||
} | ||
|
||
var x: boolean = someBool; | ||
|
||
class Bar { | ||
y: string; | ||
someMethod(a: number): string { | ||
return a * 2; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* important! this file is only to ensure we parse files with Flow annotation | ||
* properly. The formatting of typeAnnotation should be handled by an external | ||
* plugin since not all users will require this feature and implementation is | ||
* pretty complex. | ||
* @flow | ||
*/ | ||
function foo(a: string, b: number): void { | ||
return a + String(b); | ||
} | ||
|
||
var x: boolean = someBool; | ||
|
||
class Bar { | ||
y: string; | ||
someMethod(a: number): string { | ||
return a * 2; | ||
} | ||
} |