Class DIContainer

Constructors

Properties

instances: Record<string, Record<string, BaseObject>> = {}
overrides: Record<string, BaseClass> = {}

Methods

  • creates property key string for index in records

    Parameters

    • Optionalprops: any

      anything really

    Returns string

  • get instance of Class/Override unique with constructor props

    Type Parameters

    Parameters

    • Class: BaseClass<T>

      the class to search for in DIContainer

    • ...props: any[]

      the optional props for constructor of instance

    Returns T

  • stringify anything or return {} if not possible

    Parameters

    • Optionalprops: any

      anything really

    Returns string