File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
transforms/__testfixtures__ Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
var React = require ( 'react' ) ;
4
4
5
+ type SomeStuff < A > = { // TypeParameter
6
+ fetch : ( ) => Promise < A > ,
7
+ } ;
8
+
5
9
var Component = React . createClass ( {
6
10
statics : {
7
11
notTyped : true ,
12
+ nothing : ( null : null ) , // NullTypeAnnotation
8
13
numberOrBool : ( true : number | boolean ) ,
9
14
logger : ( x : any ) : void => { console . log ( x ) ; } ,
10
15
logger2 : function ( x : any ) : void {
Original file line number Diff line number Diff line change 2
2
3
3
var React = require ( 'react' ) ;
4
4
5
+ type SomeStuff < A > = { // TypeParameter
6
+ fetch : ( ) => Promise < A > ,
7
+ } ;
8
+
5
9
class Component extends React . Component {
6
10
static notTyped = true ;
11
+ static nothing : null = null ; // NullTypeAnnotation
7
12
static numberOrBool : number | boolean = true ;
8
13
static logger = ( x : any ) : void => { console . log ( x ) ; } ;
9
14
You can’t perform that action at this time.
0 commit comments