@codemod-utils/ember
Version:
Utilities for Ember
23 lines (22 loc) • 443 B
TypeScript
/**
* Converts an entity name to Pascal case. Used for naming the
* class that is associated with the entity.
*
* @param entityName
*
* The name of an entity (made up of lowercase letters, hyphen,
* and forward slash).
*
* @return
*
* The name in Pascal case.
*
* @example
*
* ```ts
* const newValue = pascalize('ui/form/input');
*
* // 'UiFormInput'
* ```
*/
export declare function pascalize(entityName: string): string;