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

    Function fromPromise

    • Converts a promise that might throw to a Result

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>

        Promise that might throw

      Returns Promise<Result<T, Error>>

      Promise that resolves to a Result