Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function assertNotInstanceOf
import { assertNotInstanceOf } from "https://deno.land/std@0.153.0/testing/asserts.ts";

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]