Skip to content

composeEnvironments

composeEnvironments(…environments): Env

composeEnvironments folds each environment onto the first, in order. The declaration, overload, type, and registry rules the environment already applies when it is constructed remain the single source of truth for what is compatible, so a conflict surfaces before composeEnvironments returns rather than on a later check. No input environment is modified, and the result is usable independently of them.

…Env[]

Env