import pluralize from "pluralize" ; export const pluralizedTypeName = ( typeName ) => { let pluralizedTypeName ; if ( typeName . length === 1 ) { pluralizedTypeName = `${ typeName }s` ; } else { pluralizedTypeName = pluralize ( typeName ) ; } return pluralizedTypeName ; } ;