jsii-pacmak
Version:
A code generation framework for jsii backend languages
18 lines • 693 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsiiToPascalCase = void 0;
/**
* Converts a jsii method/property names to pascal-case.
*
* This is different from `toPascalCase()` since it only capitalizes the first
* letter. This handles avoids duplicates of things like `toIsoString()` and `toISOString()`.
* The assumption is that the jsii name is camelCased.
*
* @param camelCase The original jsii method name
* @returns A pascal-cased method name.
*/
function jsiiToPascalCase(camelCase) {
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
}
exports.jsiiToPascalCase = jsiiToPascalCase;
//# sourceMappingURL=naming-util.js.map
;