Vereda
    Preparing search index...

    Type Alias ParseFn<T>

    ParseFn: (data: unknown) => T | Promise<T>

    Validates/transforms the decoded body. May be async (e.g. a schema with async refinements); a throw or rejection becomes a ValidationError.

    Type Parameters

    • T

    Type Declaration

      • (data: unknown): T | Promise<T>
      • Parameters

        • data: unknown

        Returns T | Promise<T>