import { FieldLocation } from '../types' ; export function fileTypeByLocation ( fieldLocation ) { switch ( fieldLocation ) { case 'inputObjectTypes' : return 'input' ; case 'outputObjectTypes' : return 'output' ; case 'enumTypes' : return 'enum' ; } return 'object' ; }