@codemod-utils/ember
Version:
Utilities for Ember
23 lines (22 loc) • 490 B
TypeScript
/**
* Converts an entity name to double colon (`::`) case. Used for
* writing the angle bracket syntax or the signature for a component.
*
* @param entityName
*
* The name of an entity (made up of lowercase letters, hyphen,
* and forward slash).
*
* @return
*
* The name in double colon case.
*
* @example
*
* ```ts
* const newValue = doubleColonize('ui/form/input');
*
* // 'Ui::Form::Input'
* ```
*/
export declare function doubleColonize(entityName: string): string;