mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 17:49:57 +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 { factory } = require('typescript');
|
||||||
const {
|
const {
|
||||||
flow,
|
pipe,
|
||||||
replace,
|
replace,
|
||||||
camelCase,
|
camelCase,
|
||||||
upperFirst,
|
upperFirst,
|
||||||
@ -28,7 +28,7 @@ const getAllStrapiSchemas = strapi => ({ ...strapi.contentTypes, ...strapi.compo
|
|||||||
* @param {string} uid
|
* @param {string} uid
|
||||||
* @returns {string}
|
* @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
|
* Get the parent type name to extend based on the schema's nature
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user