@arcmantle/library
    Preparing search index...

    Type Alias CompatibilityOf<T, M>

    CompatibilityOf: [T] extends [M]
        ? [M] extends [T] ? "equal" : "similar"
        : "different"

    Describes how T compatible with M?

    • 'equal': T and M are exactly the same.
    • 'similar': T is a subset of M, such as 'a' being a subset of string.
    • 'different': T is not even a subset of M.

    Type Parameters

    • T
    • M