You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
648 B
17 lines
648 B
3 years ago
|
import { __assign } from "tslib";
|
||
|
import { pascalCase, pascalCaseTransform, pascalCaseTransformMerge, } from "pascal-case";
|
||
|
export function camelCaseTransform(input, index) {
|
||
|
if (index === 0)
|
||
|
return input.toLowerCase();
|
||
|
return pascalCaseTransform(input, index);
|
||
|
}
|
||
|
export function camelCaseTransformMerge(input, index) {
|
||
|
if (index === 0)
|
||
|
return input.toLowerCase();
|
||
|
return pascalCaseTransformMerge(input);
|
||
|
}
|
||
|
export function camelCase(input, options) {
|
||
|
if (options === void 0) { options = {}; }
|
||
|
return pascalCase(input, __assign({ transform: camelCaseTransform }, options));
|
||
|
}
|
||
|
//# sourceMappingURL=index.js.map
|