Use lodash pipe instead of lodash flow

This commit is contained in:
Convly 2022-07-06 15:26:56 +02:00
parent bac691d797
commit 531977f9da

View File

@ -2,7 +2,7 @@
const { factory } = require('typescript');
const {
flow,
pipe,
replace,
camelCase,
upperFirst,
@ -28,7 +28,7 @@ const getAllStrapiSchemas = strapi => ({ ...strapi.contentTypes, ...strapi.compo
* @param {string} uid
* @returns {string}
*/
const getSchemaInterfaceName = flow(replace(/(:.)/, ' '), camelCase, upperFirst);
const getSchemaInterfaceName = pipe(replace(/(:.)/, ' '), camelCase, upperFirst);
/**
* Get the parent type name to extend based on the schema's nature