serde-ts/dist/case.d.ts
2025-05-18 20:05:52 -05:00

12 lines
456 B
TypeScript

export declare const CaseConvention: Readonly<{
readonly Lowercase: 0;
readonly Uppercase: 1;
readonly PascalCase: 2;
readonly CamelCase: 3;
readonly SnakeCase: 4;
readonly ScreamingSnakeCase: 5;
readonly KebabCase: 6;
readonly ScreamingKebabCase: 7;
}>;
export type CaseConvention = typeof CaseConvention[keyof typeof CaseConvention];
export declare function convertCase(value: string, convention: CaseConvention): string;