Interface IOptionalDependency<T>

Wrapper type marking a dependency as optional at wiring time

interface IOptionalDependency<T> {
    [symbolOptionalDependency]: true;
    inner: T;
}

Type Parameters

  • T

Properties

[symbolOptionalDependency]: true

Brand symbol for optional dependency

inner: T

The wrapped dependency definition