Options
All
  • Public
  • Public/Protected
  • All
Menu

@snozaki/resultify

Index

Classes

Functions

Functions

  • runCatching<T>(supplier: (() => T)): Resultt<T>
  • Top Level shorthand for Resultt.runCatching(() => ()) . Force the first type parameter type of Error when the action result catch Error.

    Type Parameters

    • T

    Parameters

    • supplier: (() => T)

      function to be called

        • (): T
        • Returns T

    Returns Resultt<T>

    The result of execution in argument supplier.

Generated using TypeDoc