Metreeca Gear
    Preparing search index...

    Function bind

    • Binds an implementation to a service.

      Type Parameters

      • T extends {} | null

        The type of the bound service

      Parameters

      • service: Service<T>

        The service to be bound

      • factory: NoInfer<Service<T>>

        The implementation to be used in its place

      Returns Binding<T>

      An immutable binding pairing service with factory