Interface ControllerDefinitionWithProps<TEngine, TController, TProps>

interface ControllerDefinitionWithProps<
    TEngine extends CoreEngine
    | CoreEngineNext,
    TController extends Controller,
    TProps,
> {
    buildWithProps(engine: TEngine, props?: TProps): TController;
}

Type Parameters

Hierarchy (View Summary)

Methods

  • Creates an instance of the given controller.

    Parameters

    • engine: TEngine

      The search engine.

    • Optionalprops: TProps

      The controller properties.

    Returns TController

    The controller.