Type Alias Loadable2<TBase, T1, T2>

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

Creates a dynamic type that always consists of the TBase type, and optionally contains T1 and/or T2 as well. Used for scenarios where parts of a data structure are lazy-loaded and where the base model might be extended in two separate ways.

Type Parameters

  • TBase
  • T1
  • T2