xInjection - v2.1.2
    Preparing search index...

    Interface ProviderOptions<T>

    interface ProviderOptions<T> {
        provide: ProviderIdentifier<T>;
        when?: (metadata: BindingConstraints) => boolean;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    The injection token.

    when?: (metadata: BindingConstraints) => boolean

    Specifies whether the binding is used to provide a resolved value for the given provider.

    See https://inversify.io/docs/api/binding-syntax/#bindwhenfluentsyntax for more details.