Setu-TS
    Preparing search index...

    Function Query

    • Binds the whole query record.

      Resolves to the validated query when validation middleware wrote one for this request (an @ValidateQuery schema's parsed output, coercions and defaults applied), and to the raw string record otherwise. Pass that output type as T on a validated route; like Body, T is the caller's declaration, not a guarantee from this package.

      Type Parameters

      • T = Readonly<Record<string, string>>

      Returns ParamSource<T>

      A query source resolving to every query parameter

      0.2.0

    • Binds one named query parameter.

      Type Parameters

      • T = string

      Parameters

      • name: string

        Query parameter name

      Returns ParamSource<T>

      A query source resolving to that parameter's value

      0.2.0