Stone.js API
    Preparing search index...

    Interface representing a Binding.

    This interface defines the contract for all types of bindings in the service container. Bindings are used to manage dependencies and control how objects are instantiated within the container.

    Mr. Stone evensstone@gmail.com

    interface IBinding<V extends BindingValue> {
        resolve: (container: IContainer) => V;
    }

    Type Parameters

    • V extends BindingValue

      The type of value that this binding holds.

    Implemented by

    Index
    resolve: (container: IContainer) => V

    Resolve and return the value of the binding.

    Type Declaration

      • (container: IContainer): V
      • Parameters

        • container: IContainer

          The container to resolve dependencies from.

        Returns V

        The resolved value of the binding.