pure
    Preparing search index...
    • Wrap a function with try-catch and return a Result.

      Type Parameters

      • T
      • E = unknown

      Parameters

      • fn: () => T

      Returns Result<T, E>