discordx
    Preparing search index...

    Class AbstractConfigurableDependencyInjector<I>Abstract

    Interface to facilitate the ability to add custom IOC containers by conforming to the proxy of adding and retrieval of services

    Type Parameters

    • I

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _serviceSet: Set<unknown>
    injector: undefined | I
    useToken: boolean

    Methods

    • Add a service from the IOC container.

      Parameters

      • serviceConstructor: any

        The type of service to add

      Returns void

    • Get a service from the IOC container

      Type Parameters

      • T

      Parameters

      • serviceConstructor: T

      Returns null | InstanceOf<T>

      the instance of this service or null if there is no instance

    • Parameters

      • injector: I

      Returns this

    • Parameters

      • useToken: boolean

      Returns this