Skip to content

Type Alias: CamelCase<S>

ts
type 
CamelCase
<
S
> =
S
extends `${infer
Head
} ${infer
Tail
}`
? `${
Head
}${
Capitalize
<
CamelCase
<
Tail
>>}`
:
S
extends `${infer
Head
}-${infer
Tail
}`
? `${
Head
}${
Capitalize
<
CamelCase
<
Tail
>>}`
:
S
;

Defined in: types/index.ts:14

Type Parameters

S

S extends string

Released under the MIT license