PokéRogue
    Preparing search index...

    Type Alias FormatType<T>Internal

    FormatType: IsEqual<Primitive, T> extends true
        ? "a primitive"
        : IsEqual<boolean, T> extends true
            ? "a boolean"
            : UnionToTuple<T> extends [infer Only]
                ? AddPrefix<PrintTypeInternal<Only>>
                : Extract<T, boolean> extends never
                    ? `'${StringifyTuple<UnionToTuple<T>, "' | '">}'`
                    : `'${StringifyTuple<
                        [...UnionToTuple<Exclude<T, boolean>>, boolean],
                        "' | '",
                    >}'`

    Internal type helper to convert 2 arbitrary types (or unions thereof) into human-readable strings suitable for use in error messages and the like.

    Type Parameters

    • T