Stone.js API
    Preparing search index...
    • Define a new middleware for the pipeline.

      Type Parameters

      • T = unknown
      • R = T
      • Args extends any[] = any[]

      Parameters

      • module: PipeType<T, R, Args>

        The pipe module to add to the pipeline.

      • options: Omit<MetaPipe<T, R, Args>, "module"> = {}

        Additional options for the middleware.

      Returns MetaPipe<T, R, Args>

      The metadata for the middleware.