Function itry

  • Return an instance of the Try class statement

    Returns

    Type Parameters

    • T

    Parameters

    • tryFn: (() => T)

      Function to try running which may throw an error

        • (): T
        • Returns T

    Returns Try<T>

Generated using TypeDoc