@kayahr/assert
    Preparing search index...

    Function assertNotInstanceOf

    • Asserts that given value is not an instance of the given class.

      Type Parameters

      • T
      • S

      Parameters

      • value: S

        The value to check.

      • type: Class<T>

        The class the value must be an instance of.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns asserts value is Exclude<S, T>

      AssertionError when value is an instance of the given class.