Function Many

  • Experimental

    Resolve multiple services for this identifier via getMany.

    The constraints supported are listed in ResolutionConstraintFlag.

    Returns ResolutionConstraintFlag

    The resolution constraint bit-flag for SkipSelf.

    Example

    This function can be used to construct a bitmask for use in the dependencies array of a service. While this can be used publicly, it is mainly for use within TypeDI; it allows you to configure specific constraints for use when resolving a specific service.

    const constraintBitMask = Many() | SkipSelf();

    if (constraintBitMask & ResolutionConstraintFlag.Many) {
    console.log('The dependency will be resolved via "getMany".');
    }

    See

    ResolutionConstraintFlag

Generated using TypeDoc