@juulsgaard/ts-tools
    Preparing search index...

    Type Alias Loadable2Exclusive<TBase, T1, T2>

    Loadable2Exclusive:
        | TBase & UnsetExtra<TBase, T1> & UnsetExtra<TBase, T2>
        | TBase & T1 & UnsetExtra<TBase & T1, T2>
        | TBase & T2 & UnsetExtra<TBase & T2, T1>

    Creates a dynamic type that always consists of the TBase type, and optionally contains either T1 or T2 as well. Used for scenarios where parts of a data structure are lazy-loaded with one of two possible models.

    Type Parameters

    • TBase
    • T1
    • T2