BSB Node.js Type Definitions
    Preparing search index...

    Function mapError

    • Maps a Result's error value to a new error

      Type Parameters

      • T
      • E
      • F

      Parameters

      • result: Result<T, E>

        The result to map

      • fn: (error: E) => F

        Function to transform the error value

      Returns Result<T, F>

      New result with transformed error