pure
    Preparing search index...
    • Wrap an async function with try-catch and return a Promise.

      Type Parameters

      • T
      • E = unknown

      Parameters

      • fn: () => Promise<T>

      Returns Promise<Result<T, E>>