type IsAlphabet<S extends string> = Uppercase<S> extends Lowercase<S> ? false : true
type IsAlphabet<S extends string> = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' extends
`${any}${S & `${any}${any}`}${any}` ? true : false
Solution by teamchong #35257