Crypto Server
    Preparing search index...

    Function collectValidation

    • Collects validation results and, if all pass, returns the unwrapped values keyed by field name. Returns null (and sends a 400 reply) when any validation fails.

      Type Parameters

      Parameters

      • results: T
      • reply: FastifyReply

      Returns
          | {
              [K in string
              | number
              | symbol]: T[K] extends ValidationResult<V> ? V : never
          }
          | null