Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/functions/tests/deps.ts>asserts.assertNotInstanceOf

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function asserts.assertNotInstanceOf
import { asserts } from "https://deno.land/x/hex@v0.4.9/functions/tests/deps.ts";
const { assertNotInstanceOf } = asserts;

Make an assertion that obj is not an instance of type. If so, then throw.

Type Parameters

T extends AnyConstructor

Parameters

actual: unknown
unexpectedType: T
optional
msg = [UNSUPPORTED]