Function assertError

  • Asserts that the input is a native error. If not the input will be re-thrown.

    Parameters

    • error: unknown

    Returns asserts error is Error