@accordproject/concerto-util
Version:
Utilities for Concerto Modeling Language
13 lines (12 loc) • 440 B
TypeScript
/**
* Inserts correct spacing and capitalization to a camelCase label
* @param labelName - the label text to be transformed
* @returns - The label text formatted for rendering
*/
export declare function labelToSentence(labelName?: string): string;
/**
* Create a camelCase label from a sentence
* @param sentence - the sentence
* @returns - The camelCase label
*/
export declare function sentenceToLabel(sentence?: string): string;