@adobe/data - v0.10.30
    Preparing search index...

    Function ErrorResultSchema

    • Returns a json schema for an error result with the specified result schema.

      Type Parameters

      • T extends ResultSchema
      • E extends ResultSchema

      Parameters

      • valueSchema: T
      • errorSchema: E

      Returns Omit<T, "properties" | "required"> & {
          properties: { error: E };
          required: readonly ["error"];
          type: "object";
      }