@@ -184,7 +184,8 @@ export class Parser {
184
184
const token = this . expectToken ( TokenKind . NAME ) ;
185
185
return this . node ( token , {
186
186
kind : Kind . NAME ,
187
- value : ( ( token . value : any ) : string ) ,
187
+ // $FlowFixMe[incompatible-return] FIXME
188
+ value : token . value ,
188
189
} ) ;
189
190
}
190
191
@@ -413,7 +414,8 @@ export class Parser {
413
414
}
414
415
415
416
parseConstArgument ( ) : ConstArgumentNode {
416
- return ( this . parseArgument ( true ) : any ) ;
417
+ // $FlowFixMe[incompatible-return] FIXME during TS conversion
418
+ return this . parseArgument ( true ) ;
417
419
}
418
420
419
421
// Implements the parsing rules in the Fragments section.
@@ -517,13 +519,15 @@ export class Parser {
517
519
this . _lexer . advance ( ) ;
518
520
return this . node ( token , {
519
521
kind : Kind . INT ,
520
- value : ( ( token . value : any ) : string ) ,
522
+ // $FlowFixMe[incompatible-return] FIXME
523
+ value : token . value ,
521
524
} ) ;
522
525
case TokenKind . FLOAT :
523
526
this . _lexer . advance ( ) ;
524
527
return this . node ( token , {
525
528
kind : Kind . FLOAT ,
526
- value : ( ( token . value : any ) : string ) ,
529
+ // $FlowFixMe[incompatible-return] FIXME
530
+ value : token . value ,
527
531
} ) ;
528
532
case TokenKind . STRING :
529
533
case TokenKind . BLOCK_STRING :
@@ -540,7 +544,8 @@ export class Parser {
540
544
default :
541
545
return this . node ( token , {
542
546
kind : Kind . ENUM ,
543
- value : ( ( token . value : any ) : string ) ,
547
+ // $FlowFixMe[incompatible-return] FIXME
548
+ value : token . value ,
544
549
} ) ;
545
550
}
546
551
case TokenKind . DOLLAR :
@@ -563,15 +568,17 @@ export class Parser {
563
568
}
564
569
565
570
parseConstValueLiteral ( ) : ConstValueNode {
566
- return ( this . parseValueLiteral ( true ) : any ) ;
571
+ // $FlowFixMe[incompatible-return] FIXME during TS conversion
572
+ return this . parseValueLiteral ( true ) ;
567
573
}
568
574
569
575
parseStringLiteral ( ) : StringValueNode {
570
576
const token = this . _lexer . token ;
571
577
this . _lexer . advance ( ) ;
572
578
return this . node ( token , {
573
579
kind : Kind . STRING ,
574
- value : ( ( token . value : any ) : string ) ,
580
+ // $FlowFixMe[incompatible-return] FIXME
581
+ value : token . value ,
575
582
block : token . kind === TokenKind . BLOCK_STRING ,
576
583
} ) ;
577
584
}
@@ -631,7 +638,8 @@ export class Parser {
631
638
}
632
639
633
640
parseConstDirectives ( ) : Array < ConstDirectiveNode > {
634
- return ( this . parseDirectives ( true ) : any ) ;
641
+ // $FlowFixMe[incompatible-return] FIXME during TS conversion
642
+ return this . parseDirectives ( true ) ;
635
643
}
636
644
637
645
/**
0 commit comments