Skip to content

@kaelyx/ts-kit / string / ConvertCaseFormats

Variable: ConvertCaseFormats ​

const ConvertCaseFormats: Readonly<Record<ConvertCaseStyle, ConvertCaseFormat>>

Defined in: string/convert-case/convert-case.types.ts:153

The ConvertCaseFormat of each ConvertCaseStyle: the separator and the casing that convertCase uses. The object and each format are frozen.

Example ​

ts
ConvertCaseFormats.kebab.separator // '-'
ConvertCaseFormats.pascal.word('hello', 0, false) // 'Hello'