Stone.js API
    Preparing search index...

    Type Alias PipeResolver<T, R, Args>

    PipeResolver: (pipe: MetaPipe<T, R, Args>) => PipeInstance<T, R> | undefined

    A function type that represents a resolver for a given pipe.

    Type Parameters

    • T = unknown

      The type of the passable object in the pipeline.

    • R = T

      The type of the return value from the resolved pipe, which defaults to T.

    • Args extends any[] = any[]

    Type Declaration

      • (pipe: MetaPipe<T, R, Args>): PipeInstance<T, R> | undefined
      • Parameters

        • pipe: MetaPipe<T, R, Args>

          The pipe that needs to be resolved, which can be either a simple pipe or a MetaPipe.

        Returns PipeInstance<T, R> | undefined

        The resolved pipe instance of type PipeInstance<T, R> | undefined.

        This type is used to provide a custom mechanism for resolving pipes before they are executed in the pipeline.