Metakit / @doeixd/metakit/language
compose
function · packages/metakit/src/language.ts:136
function compose<A extends FamilyMap, B extends FamilyMap>(
a: Language<A>,
b: Language<B>,
): Language<ComposedFamilies<A, B>>Compose two Languages into one while preserving literal operation IDs and types.
Identical AnyOperation references are merged idempotently; conflicting
operations or distinct default lowerings for the same operation and dialect
throw LanguageConflictError.