Langium - v4.0.0
    Preparing search index...

    Function merge

    • Merges two dependency injection modules into a new (third) one that is returned. At that m1 and m2 stay unchanged. Therefore, m1 is deep-copied first, and m2 is merged onto the copy afterwards.

      Note that the leaf values of m1 and m2, i.e. the service constructor functions, cannot be copied generically, since they are functions. They are shared by the source and merged modules.

      Type Parameters

      • M1
      • M2
      • R

      Parameters

      Returns Module<R, M1 & M2>

      the merged module being a deep copy of m1 with m2 merged onto it.