1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.jsiiToPascalCase = void 0;
|
4 | /**
|
5 | * Converts a jsii method/property names to pascal-case.
|
6 | *
|
7 | * This is different from `toPascalCase()` since it only capitalizes the first
|
8 | * letter. This handles avoids duplicates of things like `toIsoString()` and `toISOString()`.
|
9 | * The assumption is that the jsii name is camelCased.
|
10 | *
|
11 | * @param camelCase The original jsii method name
|
12 | * @returns A pascal-cased method name.
|
13 | */
|
14 | function jsiiToPascalCase(camelCase) {
|
15 | return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
16 | }
|
17 | exports.jsiiToPascalCase = jsiiToPascalCase;
|
18 | //# sourceMappingURL=naming-util.js.map |
\ | No newline at end of file |