onrails
    Preparing search index...
    • Type-narrowing predicate: returns true when the result is Err.

      Type Parameters

      • T
      • E

      Parameters

      Returns result is Err<T, E>

      if (isErr(r)) {
      metrics.inc("error", { kind: r.error.kind });
      }