StartsWithUppercase
Type Aliases
StartsWithUppercase
Ƭ StartsWithUppercase<S
>: S
extends string
? Extract
<S
, Capitalize
<S
>> : never
Helper type to ensure that the given string starts with an uppercase letter.
Type parameters
Name |
---|
S |
Defined in
packages/isaacscript-common/src/types/StartsWithUppercase.ts:2