@webda/core
Version:
Expose API with Lambda
8 lines (7 loc) • 395 B
TypeScript
/**
* Transform the name of the model to be used in the URL
*
* @see https://blog.boot.dev/clean-code/casings-in-coding/#:~:text=%F0%9F%94%97%20Camel%20Case,Go
*/
export type TransformCaseType = "none" | "camelCase" | "ENV_VAR" | "snake_case" | "PascalCase" | "kebab-case" | "UPPERCASE" | "lowercase";
export declare function TransformCase(name: string, newCase: TransformCaseType): string;