Type alias Plugin<T>

Plugin<T>: ((input) => Output<T>)

Type Parameters

  • T

Type declaration

    • (input): Output<T>
    • A plugin is just a function that takes the previous and next state of the combobox and returns the final next state.

      Parameters

      • input: {
            config: Config<T>;
            initialModel: Model<T>;
            input: Input<T>;
            output: Output<T>;
        }
        • config: Config<T>

          The config of the combobox

        • initialModel: Model<T>

          The initial model of the combobox

        • input: Input<T>

          This is the running input in the chain of plugins

        • output: Output<T>

          This is the running output in the chain of plugins That will eventually be returned by the update function

      Returns Output<T>

Generated using TypeDoc