(style?: string)
| 11 | | "slug"; |
| 12 | |
| 13 | function normalizeStyle(style?: string): CaseStyle | null { |
| 14 | if (!style) return null; |
| 15 | const normalized = style.trim().toLowerCase(); |
| 16 | switch (normalized) { |
| 17 | case "kebab": |
| 18 | case "snake": |
| 19 | case "camel": |
| 20 | case "pascal": |
| 21 | case "title": |
| 22 | case "lower": |
| 23 | case "upper": |
| 24 | case "slug": |
| 25 | return normalized; |
| 26 | default: |
| 27 | return null; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | /** The case styles {@link transformCase} understands, in the order shown to the |
| 32 | * user when an unrecognized |case: style is rejected. */ |
no outgoing calls
no test coverage detected