Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 6, 2024
1 parent 146ecd0 commit 1f6754f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ type RemoveFirstOfString<S extends string> = S extends `${string}${infer R}`
: never;
type IsUpper<S extends string> = S extends Uppercase<S> ? true : false;
type IsLower<S extends string> = S extends Lowercase<S> ? true : false;
type SameLetterCase<X extends string, Y extends string> =
IsUpper<X> extends IsUpper<Y>
type SameLetterCase<
X extends string,
Y extends string,
> = IsUpper<X> extends IsUpper<Y>
? true
: IsLower<X> extends IsLower<Y>
? true
: IsLower<X> extends IsLower<Y>
? true
: false;
: false;
type CapitalizedWords<
T extends readonly string[],
Accumulator extends string = "",
Expand Down

0 comments on commit 1f6754f

Please sign in to comment.