1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var change_case_1 = require("change-case");
|
4 | function toPascalCase(str) {
|
5 | if (str.charAt(0) === '_') {
|
6 | return str.replace(/^(_*)(.*)/, function (_match, underscorePrefix, typeName) { return "" + underscorePrefix + change_case_1.pascalCase(typeName || ''); });
|
7 | }
|
8 | return change_case_1.pascalCase(str || '');
|
9 | }
|
10 | exports.toPascalCase = toPascalCase;
|
11 | //# sourceMappingURL=to-pascal-case.js.map |
\ | No newline at end of file |