Pacote
    Preparing search index...

    Function mapErr

    • Maps a Result<T, E> to Result<T, F> by applying a function to the contained value.

      Type Parameters

      • T
      • E
      • F

      Parameters

      • fn: (value: E) => F

        Error mapping function.

      • result: Result<T, E>

        Result to map.

      Returns Result<T, F>

      Mapped result error.