novx
    Preparing search index...

    Class Environment

    Environment is the main DI container.

    Index

    Constructors

    Properties

    parent: Environment | null
    instance: Environment | null = null

    Methods

    • Get an instance of the specified type

      Type Parameters

      • T

        the type

      Parameters

      • type: new (...args: any[]) => T

        the desired type

      Returns T

      the instance

    • Get all registered types matching a predicate

      Parameters

      • predicate: (type: any) => boolean

      Returns any[]