index.js 648 B

1234567891011121314151617
  1. import { __assign } from "tslib";
  2. import { pascalCase, pascalCaseTransform, pascalCaseTransformMerge, } from "pascal-case";
  3. export function camelCaseTransform(input, index) {
  4. if (index === 0)
  5. return input.toLowerCase();
  6. return pascalCaseTransform(input, index);
  7. }
  8. export function camelCaseTransformMerge(input, index) {
  9. if (index === 0)
  10. return input.toLowerCase();
  11. return pascalCaseTransformMerge(input);
  12. }
  13. export function camelCase(input, options) {
  14. if (options === void 0) { options = {}; }
  15. return pascalCase(input, __assign({ transform: camelCaseTransform }, options));
  16. }
  17. //# sourceMappingURL=index.js.map