@@ -50,8 +50,8 @@ let LF = '\n';
5050const nodes = {
5151 OperationDefinition ( node : OperationDefinitionNode ) : string {
5252 let out : string = '' ;
53- if ( ( node as any ) . description ) {
54- out += nodes . StringValue ( ( node as any ) . description ) + '\n' ;
53+ if ( node . description ) {
54+ out += nodes . StringValue ( node . description ) + '\n' ;
5555 }
5656 out += node . operation ;
5757 if ( node . name ) out += ' ' + node . name . value ;
@@ -66,8 +66,8 @@ const nodes = {
6666 } ,
6767 VariableDefinition ( node : VariableDefinitionNode ) : string {
6868 let out = '' ;
69- if ( ( node as any ) . description ) {
70- out += nodes . StringValue ( ( node as any ) . description ) + ' ' ;
69+ if ( node . description ) {
70+ out += nodes . StringValue ( node . description ) + ' ' ;
7171 }
7272 out += nodes . Variable ! ( node . variable ) + ': ' + _print ( node . type ) ;
7373 if ( node . defaultValue ) out += ' = ' + _print ( node . defaultValue ) ;
@@ -160,8 +160,8 @@ const nodes = {
160160 } ,
161161 FragmentDefinition ( node : FragmentDefinitionNode ) : string {
162162 let out = '' ;
163- if ( ( node as any ) . description ) {
164- out += nodes . StringValue ( ( node as any ) . description ) + '\n' ;
163+ if ( node . description ) {
164+ out += nodes . StringValue ( node . description ) + '\n' ;
165165 }
166166 out += 'fragment ' + node . name . value ;
167167 out += ' on ' + node . typeCondition . name . value ;
0 commit comments