Stone.js API
    Preparing search index...

    Class representing a generic AdapterEventBuilder.

    This class provides a builder pattern to construct an object of type R based on options of type V. It is intended to handle complex object creation by allowing flexible modification of options and resolving the final object.

    Type Parameters

    • V extends object

      The type of the options used to build the final object. Must be an object.

    • R

      The type of the final object that will be built.

    Implements

    Index
    • Protected

      Constructs an AdapterEventBuilder.

      Type Parameters

      • V extends object

        The type of the options used to build the final object. Must be an object.

      • R

        The type of the final object that will be built.

      Parameters

      • options: AdapterEventBuilderOptions<V, R>

        The options for creating the AdapterEventBuilder instance, including the initial options and the resolver function.

      Returns AdapterEventBuilder<V, R>

    options: V

    The options used for building the final object.

    • Adds or updates a key-value pair in the options.

      Parameters

      • key: keyof V

        The key in the options to be updated.

      • value: V[keyof V]

        The value to set for the given key.

      Returns this

      This instance of AdapterEventBuilder for method chaining.

    • Adds a key-value pair in the options if the key does not already exist.

      Parameters

      • key: keyof V

        The key in the options to be updated.

      • value: V[keyof V]

        The value to set for the given key.

      Returns this

      This instance of AdapterEventBuilder for method chaining.

    • Builds the final object by using the resolver function with the current options.

      Returns R

      The final object of type R.