Backstage
    Preparing search index...

    Function assertError

    • Asserts that an unknown value is an ErrorLike object, which guarantees that it's an object that has at least two string properties: a non-empty name and message.

      If the value is not an ErrorLike object, an error is thrown.

      Parameters

      • value: unknown

        an unknown value

      Returns asserts value is ErrorLike