Function withDefaultOnError

  • An example middleware that returns a default value if the function throws an error.

    Type Parameters

    • I
    • O

    Parameters

    Returns O