@alextheman/utility - v4.3.5
    Preparing search index...

    Type Alias IgnoreCase<StringType>

    IgnoreCase: string extends StringType
        ? string
        : StringType extends `${infer FirstCharacter}${infer SecondCharacter}${infer Remainder}`
            ? `${Uppercase<FirstCharacter>
            | Lowercase<FirstCharacter>}${
                | Uppercase<SecondCharacter>
                | Lowercase<SecondCharacter>}${IgnoreCase<Remainder>}`
            : StringType extends `${infer FirstCharacter}${infer Remainder}`
                ? `${Uppercase<FirstCharacter>
                | Lowercase<FirstCharacter>}${IgnoreCase<Remainder>}`
                : ""

    Allows case-insensitive variants of a known string type.

    Type Parameters

    • StringType extends string

      The input string type.