mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Use lodash pipe instead of lodash flow
This commit is contained in:
parent
bac691d797
commit
531977f9da
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user