Type Alias Plugin<TInstance>

A plugin that can be either a function (PluginFn) or an object (IPluginObject).

This union type allows plugins to be defined in whichever form best fits the use case — a lightweight function for simple logic, or an object with encapsulated state for complex scenarios.

Type Parameters

  • TInstance

    The type of the target instance being configured

    IMPORT_PATH: @daiso-tech/core/middleware