@@ -148,7 +148,7 @@ function selectionsToAST(
148148 otherProp ,
149149 ts . SyntaxKind . MultiLineCommentTrivia ,
150150 "This will never be '% other', but we need some\n" +
151- "value in case none of the concrete values match." ,
151+ "value in case none of the concrete values match." ,
152152 true
153153 ) ;
154154 types . push ( [ otherPropWithComment ] ) ;
@@ -338,8 +338,8 @@ function createVisitor(options: TypeGeneratorOptions) {
338338 const baseType = selectionsToAST ( selections , state , refTypeName ) ;
339339 const type = isPlural ( node )
340340 ? ts . createTypeReferenceNode ( ts . createIdentifier ( "ReadonlyArray" ) , [
341- baseType
342- ] )
341+ baseType
342+ ] )
343343 : baseType ;
344344 return [
345345 ...getFragmentImports ( state ) ,
@@ -355,13 +355,13 @@ function createVisitor(options: TypeGeneratorOptions) {
355355 return flattenArray ( node . selections ) . map ( typeSelection => {
356356 return isAbstractType ( typeCondition )
357357 ? {
358- ...typeSelection ,
359- conditional : true
360- }
358+ ...typeSelection ,
359+ conditional : true
360+ }
361361 : {
362- ...typeSelection ,
363- concreteType : typeCondition . toString ( )
364- } ;
362+ ...typeSelection ,
363+ concreteType : typeCondition . toString ( )
364+ } ;
365365 } ) ;
366366 } ,
367367 Condition ( node : any ) {
@@ -525,7 +525,7 @@ function getEnumDefinitions({ enumsHasteModule, usedEnums }: State) {
525525}
526526
527527function stringLiteralTypeAnnotation ( name : string ) : ts . TypeNode {
528- return ts . createTypeReferenceNode ( name , undefined ) ;
528+ return ts . createLiteralTypeNode ( ts . createLiteral ( name ) ) ;
529529}
530530
531531function getRefTypeName ( name : string ) : string {
0 commit comments